Static properties and methods related to the platform.

Constructors

Methods

  • Adds an event listener to the platform class.

    Parameters

    • type: "networkStatusChanged"

      type of event listener, defined in the PlatformEventsEnum

    • callback: (ev: any) => void

    Returns void

  • Get the build configuration of the current application

    Returns string

    The build configuration of the current application.

  • Get the build date of the current application

    Returns Date

    The date and time the application was built.

  • Returns the version of the current application

    Returns string

    The version of the current application.

  • Checks if the device respectively the platform is online.

    Returns boolean

  • Checks if current app version is a v9 or higher

    Returns boolean

    true if current app version is a v9 or higher

  • Opens a url with an external application (e.g. browser, email client, phone app ...).

    Parameters

    • url: string

      Specifies the URL of the page to open.

    • Optionaltarget: string

      Specifies the target attribute or the name of the window; default:

    Returns void

  • Opens a file with an external application, if there is a default program defined for it.

    Parameters

    • filepath: string

      relative url to the file

    • mimetype: string

      the mimetype of the file

    Returns Promise<void>

  • Always remove previously registered event listeners!

    Parameters

    • type: "networkStatusChanged"

      type of event listener, defined in the PlatformEventsEnum

    • callback: (ev: any) => void

    Returns void