Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace Application

Manages application and Scene states.

Index

Variables

isMobile: boolean

Returns true if this Scene runs on a tablet or mobile phone.

deprecated

replaced with Device.isMobile

isTablet: boolean

Returns true if this Scene runs on a tablet.

deprecated

replaced with Device.isTablet

Functions

  • Defines the onExit handler which triggers before this Scene is ended.

    Note: This method can be called multiple times to call additional functions on scene exit.

    Parameters

    • onExit: (() => void)

      function to call when Scene ends.

        • (): void
        • Returns void

    Returns Disposable

  • onSceneSwitch(handler: ((t: number) => void)): Disposable
  • Defines the onSceneSwitch handler which triggers before this Scene changes to another.

    Note: This method can be called multiple times to call additional functions on scene switch.

    Parameters

    • handler: ((t: number) => void)

      function to call when Scene switches. Provides an index parameter for the target Scene

        • (t: number): void
        • Parameters

          • t: number

          Returns void

    Returns Disposable

  • quit(): void
  • quit(imageId: string): void
  • Closes this Space and returns the user to the previous screen.

    deprecated

    Returns void

  • Closes this Space and returns the user to the previous screen.

    deprecated

    Parameters

    • imageId: string

      image shown on play screen.

    Returns void