Hierarchy

  • 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)
        • (ev: any): void
        • Parameters

          • ev: any

          Returns void

    Returns void

  • Get the build configuration of the current application

    Returns

    The build configuration of the current application.

    Returns string

  • Get the build date of the current application

    Returns

    The date and time the application was built.

    Returns Date

  • Returns the version of the current application

    Returns

    The version of the current application.

    Returns string

  • Checks if the device respectively the platform is online.

    Returns boolean

  • Checks if current app version is a v9 or higher

    Returns

    true if current app version is a v9 or higher

    Returns boolean

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

    Parameters

    • url: string
    • Optional target: string

      [optional] 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)
        • (ev: any): void
        • Parameters

          • ev: any

          Returns void

    Returns void

Generated using TypeDoc