Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "application"

Contains the application abstraction with all related methods.

Index

Variables

android

This is the Android-specific application object instance. Encapsulates methods and properties specific to the Android platform. Will be undefined when TargetOS is iOS.

displayedEvent

displayedEvent: string

String value used when hooking to displayed event.

exitEvent

exitEvent: string

String value used when hooking to exit event.

ios

This is the iOS-specific application object instance. Encapsulates methods and properties specific to the iOS platform. Will be undefined when TargetOS is Android.

launchEvent

launchEvent: string

String value used when hooking to launch event.

lowMemoryEvent

lowMemoryEvent: string

String value used when hooking to lowMemory event.

orientationChangedEvent

orientationChangedEvent: string

String value used when hooking to orientationChanged event.

resumeEvent

resumeEvent: string

String value used when hooking to resume event.

suspendEvent

suspendEvent: string

String value used when hooking to suspend event.

uncaughtErrorEvent

uncaughtErrorEvent: string

String value used when hooking to uncaughtError event.

Functions

addCss

  • addCss(cssText: string): void

getCssFileName

  • getCssFileName(): string

getMainEntry

getNativeApplication

  • getNativeApplication(): any

getResources

  • getResources(): any

hasLaunched

  • hasLaunched(): boolean
  • Indicates if the application is allready launched. See also the application.on("launch", handler) event.

    Returns boolean

hasListeners

  • hasListeners(eventName: string): boolean
  • Checks whether a listener is registered for the specified event name.

    Parameters

    • eventName: string

      The name of the event to check for.

    Returns boolean

notify

  • notify(data: any): void
  • Notifies all the registered listeners for the event provided in the data.eventName.

    Parameters

    • data: any

      The data associated with the event.

    Returns void

off

  • off(eventNames: string, callback?: any, thisArg?: any): any
  • off(eventNames: string, callback?: any, thisArg?: any): any
  • Removes listener for the specified event name.

    Parameters

    • eventNames: string
    • Optional callback: any
    • Optional thisArg: any

    Returns any

  • Shortcut alias to the removeEventListener method.

    Parameters

    • eventNames: string

      String corresponding to events (e.g. "onLaunch").

    • Optional callback: any

      Callback function which will be removed.

    • Optional thisArg: any

      An optional parameter which will be used as this context for callback execution.

    Returns any

on

  • on(event: "cssChanged", callback: function, thisArg?: any): any
  • on(event: "livesync", callback: function): any
  • on(eventNames: string, callback: function, thisArg?: any): any
  • on(event: "launch", callback: function, thisArg?: any): any
  • on(event: "displayed", callback: function, thisArg?: any): any
  • on(event: "suspend", callback: function, thisArg?: any): any
  • on(event: "resume", callback: function, thisArg?: any): any
  • on(event: "exit", callback: function, thisArg?: any): any
  • on(event: "lowMemory", callback: function, thisArg?: any): any
  • on(event: "uncaughtError", callback: function, thisArg?: any): any
  • on(event: "orientationChanged", callback: function, thisArg?: any): any

setCssFileName

  • setCssFileName(cssFile: string): void

setResources

  • setResources(res: any): void
  • setResources(resources: any): any

start

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method