Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Application

Hierarchy

  • Application

Index

Constructors

constructor

Methods

boot

  • boot(): void
  • Boots the application

    Returns void

checkCordovaInitialization

  • checkCordovaInitialization(): void
  • Checks if cordova was loaded properly

    Returns void

checkKeyboardStatus

  • checkKeyboardStatus(): void
  • Checks the keyboard status once in a while

    Returns void

checkResize

  • checkResize(forceUpdate?: boolean): void
  • Checks if the app resized. Only does this once in a while

    Parameters

    • Default value forceUpdate: boolean = false

      Forced update of the dimensions

    Returns void

deinitialize

  • deinitialize(): any
  • Deinitializes the application

    Returns any

enterImmersiveMode

  • enterImmersiveMode(): void
  • Enters immersive mode on android, hiding the system ui

    Returns void

handleVisibilityChange

  • handleVisibilityChange(event: any): void
  • Handles a page visibility change event

    Parameters

    • event: any

    Returns void

initPlatformDependentInstances

  • initPlatformDependentInstances(): void
  • Initializes all platform instances

    Returns void

isRenderable

  • isRenderable(): any
  • Returns if the app is currently visible

    Returns any

onAppRenderableStateChanged

  • onAppRenderableStateChanged(renderable: any): void
  • Parameters

    • renderable: any

    Returns void

onBackgroundFrame

  • onBackgroundFrame(dt: any): void
  • Background frame update callback

    Parameters

    • dt: any

    Returns void

onBeforeUnload

  • onBeforeUnload(event: any): void
  • Internal before-unload handler

    Parameters

    • event: any

    Returns void

onBlur

  • onBlur(): void
  • Internal blur handler

    Returns void

onCordovaApplicationPaused

  • onCordovaApplicationPaused(): void
  • Internal pause handler, emitted by cordova

    Returns void

onCordovaApplicationResumed

  • onCordovaApplicationResumed(): void
  • Internal resume handler, emitted by cordova

    Returns void

onFocus

  • onFocus(): void
  • Internal on focus handler

    Returns void

onFrameEmitted

  • onFrameEmitted(dt: any): void
  • Frame update callback

    Parameters

    • dt: any

    Returns void

onUnload

  • onUnload(event: any): void
  • Internal unload handler

    Parameters

    • event: any

    Returns void

readOrientation

  • readOrientation(): void
  • Reads the orientation from the device

    Returns void

registerEventListeners

  • registerEventListeners(): void
  • Registers all event listeners

    Returns void

registerStates

  • registerStates(): void
  • Registers all game states

    Returns void

updateAfterUiScaleChanged

  • updateAfterUiScaleChanged(): void
  • Callback after ui scale has cahnged

    Returns void

updateCssNotch

  • updateCssNotch(side: any, amount: any): void
  • Internal helper to set a notch variable for the stylesheet

    Parameters

    • side: any
    • amount: any

    Returns void

updateFocusAfterUserInteraction

  • updateFocusAfterUserInteraction(event: any): void
  • Checks the focus after a touch

    Parameters

    • event: any

    Returns void

updateKeyboardOpen

  • updateKeyboardOpen(isOpen: any): void
  • Updated after the keyboard state changed

    Parameters

    • isOpen: any

    Returns void

updateNotch

  • updateNotch(): void
  • Updates the notch properties

    Returns void