Classes
AndroidApplication
Defined in: application/application.d.ts:9
Extends
Properties
activityBackPressedEvent
readonly activityBackPressedEvent: "activityBackPressed" = AndroidApplication.activityBackPressedEvent;Defined in: application/application.d.ts:63
activityCreatedEvent
readonly activityCreatedEvent: "activityCreated" = AndroidApplication.activityCreatedEvent;Defined in: application/application.d.ts:55
activityDestroyedEvent
readonly activityDestroyedEvent: "activityDestroyed" = AndroidApplication.activityDestroyedEvent;Defined in: application/application.d.ts:56
activityNewIntentEvent
readonly activityNewIntentEvent: "activityNewIntent" = AndroidApplication.activityNewIntentEvent;Defined in: application/application.d.ts:64
activityPausedEvent
readonly activityPausedEvent: "activityPaused" = AndroidApplication.activityPausedEvent;Defined in: application/application.d.ts:58
activityRequestPermissionsEvent
readonly activityRequestPermissionsEvent: "activityRequestPermissions" = AndroidApplication.activityRequestPermissionsEvent;Defined in: application/application.d.ts:65
activityResultEvent
readonly activityResultEvent: "activityResult" = AndroidApplication.activityResultEvent;Defined in: application/application.d.ts:62
activityResumedEvent
readonly activityResumedEvent: "activityResumed" = AndroidApplication.activityResumedEvent;Defined in: application/application.d.ts:59
activityStartedEvent
readonly activityStartedEvent: "activityStarted" = AndroidApplication.activityStartedEvent;Defined in: application/application.d.ts:57
activityStoppedEvent
readonly activityStoppedEvent: "activityStopped" = AndroidApplication.activityStoppedEvent;Defined in: application/application.d.ts:60
autoSystemAppearanceChanged
autoSystemAppearanceChanged: boolean;Defined in: application/application-common.ts
Boolean to enable/disable systemAppearanceChanged
Inherited from
ApplicationCommon.autoSystemAppearanceChanged
backgroundEvent
readonly backgroundEvent: "background" = "background";Defined in: application/application-common.ts
Inherited from
ApplicationCommon.backgroundEvent
cssChangedEvent
readonly cssChangedEvent: "cssChanged" = "cssChanged";Defined in: application/application-common.ts
Inherited from
ApplicationCommon.cssChangedEvent
discardedErrorEvent
readonly discardedErrorEvent: "discardedError" = "discardedError";Defined in: application/application-common.ts
Inherited from
ApplicationCommon.discardedErrorEvent
displayedEvent
readonly displayedEvent: "displayed" = "displayed";Defined in: application/application-common.ts
Inherited from
ApplicationCommon.displayedEvent
exitEvent
readonly exitEvent: "exit" = "exit";Defined in: application/application-common.ts
Inherited from
fontScaleChangedEvent
readonly fontScaleChangedEvent: "fontScaleChanged" = "fontScaleChanged";Defined in: application/application-common.ts
Inherited from
ApplicationCommon.fontScaleChangedEvent
foregroundEvent
readonly foregroundEvent: "foreground" = "foreground";Defined in: application/application-common.ts
Inherited from
ApplicationCommon.foregroundEvent
hasListeners
hasListeners: (eventName: string) => boolean;Defined in: application/application-common.ts
Parameters
| Parameter | Type |
|---|---|
eventName | string |
Returns
boolean
Inherited from
ApplicationCommon.hasListeners
initRootViewEvent
readonly initRootViewEvent: "initRootView" = "initRootView";Defined in: application/application-common.ts
Inherited from
ApplicationCommon.initRootViewEvent
launchEvent
readonly launchEvent: "launch" = "launch";Defined in: application/application-common.ts
Inherited from
layoutDirectionChangedEvent
readonly layoutDirectionChangedEvent: "layoutDirectionChanged" = "layoutDirectionChanged";Defined in: application/application-common.ts
Inherited from
ApplicationCommon.layoutDirectionChangedEvent
livesyncEvent
readonly livesyncEvent: "livesync" = "livesync";Defined in: application/application-common.ts
Inherited from
ApplicationCommon.livesyncEvent
loadAppCssEvent
readonly loadAppCssEvent: "loadAppCss" = "loadAppCss";Defined in: application/application-common.ts
Inherited from
ApplicationCommon.loadAppCssEvent
lowMemoryEvent
readonly lowMemoryEvent: "lowMemory" = "lowMemory";Defined in: application/application-common.ts
Inherited from
ApplicationCommon.lowMemoryEvent
mainEntry
protected mainEntry: NavigationEntry;Defined in: application/application-common.ts
Inherited from
notify
notify: <T>(eventData: T) => void;Defined in: application/application-common.ts
Type Parameters
| Type Parameter | Default type |
|---|---|
T | ApplicationEventData |
Parameters
| Parameter | Type |
|---|---|
eventData | T |
Returns
void
Inherited from
off
off: (eventNames: string, callback?: any, thisArg?: any) => void;Defined in: application/application-common.ts
Parameters
| Parameter | Type |
|---|---|
eventNames | string |
callback? | any |
thisArg? | any |
Returns
void
Inherited from
once
once: {
(eventNames: string, callback: (args: ApplicationEventData) => void, thisArg?: any): void;
(event: "cssChanged", callback: (args: CssChangedEventData) => void, thisArg?: any): void;
(event: "livesync", callback: (args: ApplicationEventData) => void, thisArg?: any): void;
(event: "launch", callback: (args: LaunchEventData) => void, thisArg?: any): void;
(event: "displayed", callback: (args: ApplicationEventData) => void, thisArg?: any): void;
(event: "suspend", callback: (args: ApplicationEventData) => void, thisArg?: any): void;
(event: "resume", callback: (args: ApplicationEventData) => void, thisArg?: any): void;
(event: "exit", callback: (args: ApplicationEventData) => void, thisArg?: any): void;
(event: "lowMemory", callback: (args: ApplicationEventData) => void, thisArg?: any): void;
(event: "uncaughtError", callback: (args: UnhandledErrorEventData) => void, thisArg?: any): void;
(event: "discardedError", callback: (args: DiscardedErrorEventData) => void, thisArg?: any): void;
(event: "orientationChanged", callback: (args: OrientationChangedEventData) => void, thisArg?: any): void;
(event: "systemAppearanceChanged", callback: (args: SystemAppearanceChangedEventData) => void, thisArg?: any): void;
(event: "layoutDirectionChanged", callback: (args: LayoutDirectionChangedEventData) => void, thisArg?: any): void;
(event: "fontScaleChanged", callback: (args: FontScaleChangedEventData) => void, thisArg?: any): void;
};Defined in: application/application-common.ts
Call Signature
(
eventNames: string,
callback: (args: ApplicationEventData) => void,
thisArg?: any): void;Parameters
| Parameter | Type |
|---|---|
eventNames | string |
callback | (args: ApplicationEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "cssChanged",
callback: (args: CssChangedEventData) => void,
thisArg?: any): void;This event is raised when application css is changed.
Parameters
| Parameter | Type |
|---|---|
event | "cssChanged" |
callback | (args: CssChangedEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "livesync",
callback: (args: ApplicationEventData) => void,
thisArg?: any): void;Event raised then livesync operation is performed.
Parameters
| Parameter | Type |
|---|---|
event | "livesync" |
callback | (args: ApplicationEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "launch",
callback: (args: LaunchEventData) => void,
thisArg?: any): void;This event is raised on application launchEvent.
Parameters
| Parameter | Type |
|---|---|
event | "launch" |
callback | (args: LaunchEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "displayed",
callback: (args: ApplicationEventData) => void,
thisArg?: any): void;Experimental
This event is raised after the application has performed most of its startup actions. Its intent is to be suitable for measuring app startup times.
Parameters
| Parameter | Type |
|---|---|
event | "displayed" |
callback | (args: ApplicationEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "suspend",
callback: (args: ApplicationEventData) => void,
thisArg?: any): void;This event is raised when the Application is suspended.
Parameters
| Parameter | Type |
|---|---|
event | "suspend" |
callback | (args: ApplicationEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "resume",
callback: (args: ApplicationEventData) => void,
thisArg?: any): void;This event is raised when the Application is resumed after it has been suspended.
Parameters
| Parameter | Type |
|---|---|
event | "resume" |
callback | (args: ApplicationEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "exit",
callback: (args: ApplicationEventData) => void,
thisArg?: any): void;This event is raised when the Application is about to exit.
Parameters
| Parameter | Type |
|---|---|
event | "exit" |
callback | (args: ApplicationEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "lowMemory",
callback: (args: ApplicationEventData) => void,
thisArg?: any): void;This event is raised when there is low memory on the target device.
Parameters
| Parameter | Type |
|---|---|
event | "lowMemory" |
callback | (args: ApplicationEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "uncaughtError",
callback: (args: UnhandledErrorEventData) => void,
thisArg?: any): void;This event is raised when an uncaught error occurs while the application is running.
Parameters
| Parameter | Type |
|---|---|
event | "uncaughtError" |
callback | (args: UnhandledErrorEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "discardedError",
callback: (args: DiscardedErrorEventData) => void,
thisArg?: any): void;This event is raised when an discarded error occurs while the application is running.
Parameters
| Parameter | Type |
|---|---|
event | "discardedError" |
callback | (args: DiscardedErrorEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "orientationChanged",
callback: (args: OrientationChangedEventData) => void,
thisArg?: any): void;This event is raised when the orientation of the application changes.
Parameters
| Parameter | Type |
|---|---|
event | "orientationChanged" |
callback | (args: OrientationChangedEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "systemAppearanceChanged",
callback: (args: SystemAppearanceChangedEventData) => void,
thisArg?: any): void;This event is raised when the operating system appearance changes between light and dark theme (for Android); between light and dark mode (for iOS) and vice versa.
Parameters
| Parameter | Type |
|---|---|
event | "systemAppearanceChanged" |
callback | (args: SystemAppearanceChangedEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "layoutDirectionChanged",
callback: (args: LayoutDirectionChangedEventData) => void,
thisArg?: any): void;This event is raised when the operating system layout direction changes between ltr and rtl.
Parameters
| Parameter | Type |
|---|---|
event | "layoutDirectionChanged" |
callback | (args: LayoutDirectionChangedEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "fontScaleChanged",
callback: (args: FontScaleChangedEventData) => void,
thisArg?: any): void;Parameters
| Parameter | Type |
|---|---|
event | "fontScaleChanged" |
callback | (args: FontScaleChangedEventData) => void |
thisArg? | any |
Returns
void
Inherited from
orientationChangedEvent
readonly orientationChangedEvent: "orientationChanged" = "orientationChanged";Defined in: application/application-common.ts
Inherited from
ApplicationCommon.orientationChangedEvent
resumeEvent
readonly resumeEvent: "resume" = "resume";Defined in: application/application-common.ts
Inherited from
saveActivityStateEvent
readonly saveActivityStateEvent: "saveActivityState" = AndroidApplication.saveActivityStateEvent;Defined in: application/application.d.ts:61
started
started: boolean;Defined in: application/application-common.ts
Inherited from
suspendEvent
readonly suspendEvent: "suspend" = "suspend";Defined in: application/application-common.ts
Inherited from
ApplicationCommon.suspendEvent
systemAppearanceChangedEvent
readonly systemAppearanceChangedEvent: "systemAppearanceChanged" = "systemAppearanceChanged";Defined in: application/application-common.ts
Inherited from
ApplicationCommon.systemAppearanceChangedEvent
uncaughtErrorEvent
readonly uncaughtErrorEvent: "uncaughtError" = "uncaughtError";Defined in: application/application-common.ts
Inherited from
ApplicationCommon.uncaughtErrorEvent
activityBackPressedEvent
readonly static activityBackPressedEvent: "activityBackPressed" = 'activityBackPressed';Defined in: application/application.d.ts:45
Deprecated
Use Application.android.activityBackPressedEvent instead.
activityCreatedEvent
readonly static activityCreatedEvent: "activityCreated" = 'activityCreated';Defined in: application/application.d.ts:13
Deprecated
Use Application.android.activityCreatedEvent instead.
activityDestroyedEvent
readonly static activityDestroyedEvent: "activityDestroyed" = 'activityDestroyed';Defined in: application/application.d.ts:17
Deprecated
Use Application.android.activityDestroyedEvent instead.
activityNewIntentEvent
readonly static activityNewIntentEvent: "activityNewIntent" = 'activityNewIntent';Defined in: application/application.d.ts:49
Deprecated
Use Application.android.activityNewIntentEvent instead.
activityPausedEvent
readonly static activityPausedEvent: "activityPaused" = 'activityPaused';Defined in: application/application.d.ts:25
Deprecated
Use Application.android.activityPausedEvent instead.
activityRequestPermissionsEvent
readonly static activityRequestPermissionsEvent: "activityRequestPermissions" = 'activityRequestPermissions';Defined in: application/application.d.ts:53
Deprecated
Use Application.android.activityRequestPermissionsEvent instead.
activityResultEvent
readonly static activityResultEvent: "activityResult" = 'activityResult';Defined in: application/application.d.ts:41
Deprecated
Use Application.android.activityResultEvent instead.
activityResumedEvent
readonly static activityResumedEvent: "activityResumed" = 'activityResumed';Defined in: application/application.d.ts:29
Deprecated
Use Application.android.activityResumedEvent instead.
activityStartedEvent
readonly static activityStartedEvent: "activityStarted" = 'activityStarted';Defined in: application/application.d.ts:21
Deprecated
Use Application.android.activityStartedEvent instead.
activityStoppedEvent
readonly static activityStoppedEvent: "activityStopped" = 'activityStopped';Defined in: application/application.d.ts:33
Deprecated
Use Application.android.activityStoppedEvent instead.
hasListeners
static hasListeners: (eventName: string) => boolean;Defined in: application/application-common.ts
Parameters
| Parameter | Type |
|---|---|
eventName | string |
Returns
boolean
Deprecated
Use Application.android.hasListeners() instead.
Inherited from
ApplicationCommon.hasListeners
notify
static notify: <T>(eventData: T) => void;Defined in: application/application-common.ts
Type Parameters
| Type Parameter | Default type |
|---|---|
T | ApplicationEventData |
Parameters
| Parameter | Type |
|---|---|
eventData | T |
Returns
void
Deprecated
Use Application.android.notify() instead.
Inherited from
off
static off: (eventNames: string, callback?: any, thisArg?: any) => void;Defined in: application/application-common.ts
Parameters
| Parameter | Type |
|---|---|
eventNames | string |
callback? | any |
thisArg? | any |
Returns
void
Deprecated
Use Application.android.off() instead.
Inherited from
on
static on: {
(eventNames: string, callback: (args: ApplicationEventData) => void, thisArg?: any): void;
(event: "cssChanged", callback: (args: CssChangedEventData) => void, thisArg?: any): void;
(event: "livesync", callback: (args: ApplicationEventData) => void, thisArg?: any): void;
(event: "launch", callback: (args: LaunchEventData) => void, thisArg?: any): void;
(event: "displayed", callback: (args: ApplicationEventData) => void, thisArg?: any): void;
(event: "suspend", callback: (args: ApplicationEventData) => void, thisArg?: any): void;
(event: "resume", callback: (args: ApplicationEventData) => void, thisArg?: any): void;
(event: "exit", callback: (args: ApplicationEventData) => void, thisArg?: any): void;
(event: "lowMemory", callback: (args: ApplicationEventData) => void, thisArg?: any): void;
(event: "uncaughtError", callback: (args: UnhandledErrorEventData) => void, thisArg?: any): void;
(event: "discardedError", callback: (args: DiscardedErrorEventData) => void, thisArg?: any): void;
(event: "orientationChanged", callback: (args: OrientationChangedEventData) => void, thisArg?: any): void;
(event: "systemAppearanceChanged", callback: (args: SystemAppearanceChangedEventData) => void, thisArg?: any): void;
(event: "layoutDirectionChanged", callback: (args: LayoutDirectionChangedEventData) => void, thisArg?: any): void;
(event: "fontScaleChanged", callback: (args: FontScaleChangedEventData) => void, thisArg?: any): void;
};Defined in: application/application-common.ts
Call Signature
(
eventNames: string,
callback: (args: ApplicationEventData) => void,
thisArg?: any): void;Parameters
| Parameter | Type |
|---|---|
eventNames | string |
callback | (args: ApplicationEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "cssChanged",
callback: (args: CssChangedEventData) => void,
thisArg?: any): void;This event is raised when application css is changed.
Parameters
| Parameter | Type |
|---|---|
event | "cssChanged" |
callback | (args: CssChangedEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "livesync",
callback: (args: ApplicationEventData) => void,
thisArg?: any): void;Event raised then livesync operation is performed.
Parameters
| Parameter | Type |
|---|---|
event | "livesync" |
callback | (args: ApplicationEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "launch",
callback: (args: LaunchEventData) => void,
thisArg?: any): void;This event is raised on application launchEvent.
Parameters
| Parameter | Type |
|---|---|
event | "launch" |
callback | (args: LaunchEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "displayed",
callback: (args: ApplicationEventData) => void,
thisArg?: any): void;Experimental
This event is raised after the application has performed most of its startup actions. Its intent is to be suitable for measuring app startup times.
Parameters
| Parameter | Type |
|---|---|
event | "displayed" |
callback | (args: ApplicationEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "suspend",
callback: (args: ApplicationEventData) => void,
thisArg?: any): void;This event is raised when the Application is suspended.
Parameters
| Parameter | Type |
|---|---|
event | "suspend" |
callback | (args: ApplicationEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "resume",
callback: (args: ApplicationEventData) => void,
thisArg?: any): void;This event is raised when the Application is resumed after it has been suspended.
Parameters
| Parameter | Type |
|---|---|
event | "resume" |
callback | (args: ApplicationEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "exit",
callback: (args: ApplicationEventData) => void,
thisArg?: any): void;This event is raised when the Application is about to exit.
Parameters
| Parameter | Type |
|---|---|
event | "exit" |
callback | (args: ApplicationEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "lowMemory",
callback: (args: ApplicationEventData) => void,
thisArg?: any): void;This event is raised when there is low memory on the target device.
Parameters
| Parameter | Type |
|---|---|
event | "lowMemory" |
callback | (args: ApplicationEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "uncaughtError",
callback: (args: UnhandledErrorEventData) => void,
thisArg?: any): void;This event is raised when an uncaught error occurs while the application is running.
Parameters
| Parameter | Type |
|---|---|
event | "uncaughtError" |
callback | (args: UnhandledErrorEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "discardedError",
callback: (args: DiscardedErrorEventData) => void,
thisArg?: any): void;This event is raised when an discarded error occurs while the application is running.
Parameters
| Parameter | Type |
|---|---|
event | "discardedError" |
callback | (args: DiscardedErrorEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "orientationChanged",
callback: (args: OrientationChangedEventData) => void,
thisArg?: any): void;This event is raised when the orientation of the application changes.
Parameters
| Parameter | Type |
|---|---|
event | "orientationChanged" |
callback | (args: OrientationChangedEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "systemAppearanceChanged",
callback: (args: SystemAppearanceChangedEventData) => void,
thisArg?: any): void;This event is raised when the operating system appearance changes between light and dark theme (for Android); between light and dark mode (for iOS) and vice versa.
Parameters
| Parameter | Type |
|---|---|
event | "systemAppearanceChanged" |
callback | (args: SystemAppearanceChangedEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "layoutDirectionChanged",
callback: (args: LayoutDirectionChangedEventData) => void,
thisArg?: any): void;This event is raised when the operating system layout direction changes between ltr and rtl.
Parameters
| Parameter | Type |
|---|---|
event | "layoutDirectionChanged" |
callback | (args: LayoutDirectionChangedEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "fontScaleChanged",
callback: (args: FontScaleChangedEventData) => void,
thisArg?: any): void;Parameters
| Parameter | Type |
|---|---|
event | "fontScaleChanged" |
callback | (args: FontScaleChangedEventData) => void |
thisArg? | any |
Returns
void
Deprecated
Use Application.android.on() instead.
Inherited from
once
static once: {
(eventNames: string, callback: (args: ApplicationEventData) => void, thisArg?: any): void;
(event: "cssChanged", callback: (args: CssChangedEventData) => void, thisArg?: any): void;
(event: "livesync", callback: (args: ApplicationEventData) => void, thisArg?: any): void;
(event: "launch", callback: (args: LaunchEventData) => void, thisArg?: any): void;
(event: "displayed", callback: (args: ApplicationEventData) => void, thisArg?: any): void;
(event: "suspend", callback: (args: ApplicationEventData) => void, thisArg?: any): void;
(event: "resume", callback: (args: ApplicationEventData) => void, thisArg?: any): void;
(event: "exit", callback: (args: ApplicationEventData) => void, thisArg?: any): void;
(event: "lowMemory", callback: (args: ApplicationEventData) => void, thisArg?: any): void;
(event: "uncaughtError", callback: (args: UnhandledErrorEventData) => void, thisArg?: any): void;
(event: "discardedError", callback: (args: DiscardedErrorEventData) => void, thisArg?: any): void;
(event: "orientationChanged", callback: (args: OrientationChangedEventData) => void, thisArg?: any): void;
(event: "systemAppearanceChanged", callback: (args: SystemAppearanceChangedEventData) => void, thisArg?: any): void;
(event: "layoutDirectionChanged", callback: (args: LayoutDirectionChangedEventData) => void, thisArg?: any): void;
(event: "fontScaleChanged", callback: (args: FontScaleChangedEventData) => void, thisArg?: any): void;
};Defined in: application/application-common.ts
Call Signature
(
eventNames: string,
callback: (args: ApplicationEventData) => void,
thisArg?: any): void;Parameters
| Parameter | Type |
|---|---|
eventNames | string |
callback | (args: ApplicationEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "cssChanged",
callback: (args: CssChangedEventData) => void,
thisArg?: any): void;This event is raised when application css is changed.
Parameters
| Parameter | Type |
|---|---|
event | "cssChanged" |
callback | (args: CssChangedEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "livesync",
callback: (args: ApplicationEventData) => void,
thisArg?: any): void;Event raised then livesync operation is performed.
Parameters
| Parameter | Type |
|---|---|
event | "livesync" |
callback | (args: ApplicationEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "launch",
callback: (args: LaunchEventData) => void,
thisArg?: any): void;This event is raised on application launchEvent.
Parameters
| Parameter | Type |
|---|---|
event | "launch" |
callback | (args: LaunchEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "displayed",
callback: (args: ApplicationEventData) => void,
thisArg?: any): void;Experimental
This event is raised after the application has performed most of its startup actions. Its intent is to be suitable for measuring app startup times.
Parameters
| Parameter | Type |
|---|---|
event | "displayed" |
callback | (args: ApplicationEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "suspend",
callback: (args: ApplicationEventData) => void,
thisArg?: any): void;This event is raised when the Application is suspended.
Parameters
| Parameter | Type |
|---|---|
event | "suspend" |
callback | (args: ApplicationEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "resume",
callback: (args: ApplicationEventData) => void,
thisArg?: any): void;This event is raised when the Application is resumed after it has been suspended.
Parameters
| Parameter | Type |
|---|---|
event | "resume" |
callback | (args: ApplicationEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "exit",
callback: (args: ApplicationEventData) => void,
thisArg?: any): void;This event is raised when the Application is about to exit.
Parameters
| Parameter | Type |
|---|---|
event | "exit" |
callback | (args: ApplicationEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "lowMemory",
callback: (args: ApplicationEventData) => void,
thisArg?: any): void;This event is raised when there is low memory on the target device.
Parameters
| Parameter | Type |
|---|---|
event | "lowMemory" |
callback | (args: ApplicationEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "uncaughtError",
callback: (args: UnhandledErrorEventData) => void,
thisArg?: any): void;This event is raised when an uncaught error occurs while the application is running.
Parameters
| Parameter | Type |
|---|---|
event | "uncaughtError" |
callback | (args: UnhandledErrorEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "discardedError",
callback: (args: DiscardedErrorEventData) => void,
thisArg?: any): void;This event is raised when an discarded error occurs while the application is running.
Parameters
| Parameter | Type |
|---|---|
event | "discardedError" |
callback | (args: DiscardedErrorEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "orientationChanged",
callback: (args: OrientationChangedEventData) => void,
thisArg?: any): void;This event is raised when the orientation of the application changes.
Parameters
| Parameter | Type |
|---|---|
event | "orientationChanged" |
callback | (args: OrientationChangedEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "systemAppearanceChanged",
callback: (args: SystemAppearanceChangedEventData) => void,
thisArg?: any): void;This event is raised when the operating system appearance changes between light and dark theme (for Android); between light and dark mode (for iOS) and vice versa.
Parameters
| Parameter | Type |
|---|---|
event | "systemAppearanceChanged" |
callback | (args: SystemAppearanceChangedEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "layoutDirectionChanged",
callback: (args: LayoutDirectionChangedEventData) => void,
thisArg?: any): void;This event is raised when the operating system layout direction changes between ltr and rtl.
Parameters
| Parameter | Type |
|---|---|
event | "layoutDirectionChanged" |
callback | (args: LayoutDirectionChangedEventData) => void |
thisArg? | any |
Returns
void
Call Signature
(
event: "fontScaleChanged",
callback: (args: FontScaleChangedEventData) => void,
thisArg?: any): void;Parameters
| Parameter | Type |
|---|---|
event | "fontScaleChanged" |
callback | (args: FontScaleChangedEventData) => void |
thisArg? | any |
Returns
void
Deprecated
Use Application.android.once() instead.
Inherited from
saveActivityStateEvent
readonly static saveActivityStateEvent: "saveActivityState" = 'saveActivityState';Defined in: application/application.d.ts:37
Deprecated
Use Application.android.saveActivityStateEvent instead.
Accessors
android
Get Signature
get android(): AndroidApplication;Defined in: application/application-common.ts
Returns
AndroidApplication
Inherited from
AndroidApplication
Get Signature
get AndroidApplication(): AndroidApplication;Defined in: application/application-common.ts
Returns
AndroidApplication
Inherited from
ApplicationCommon.AndroidApplication
backgrounded
Get Signature
get backgrounded(): boolean;Defined in: application/application.d.ts:104
Deprecated
Use Application.inBackground instead.
Returns
boolean
context
Get Signature
get context(): Context;Defined in: application/application.d.ts:99
Deprecated
Use Utils.android.getApplicationContext() instead.
Returns
Context
foregroundActivity
Get Signature
get foregroundActivity(): AppCompatActivity;Defined in: application/application.d.ts:94
The currently active (loaded) android Activity.
This property is automatically updated upon Activity events.
Returns
AppCompatActivity
inBackground
Get Signature
get inBackground(): boolean;Defined in: application/application-common.ts
Returns
boolean
Inherited from
ApplicationCommon.inBackground
ios
Get Signature
get ios(): iOSApplication;Defined in: application/application-common.ts
Returns
Inherited from
iOSApplication
Get Signature
get iOSApplication(): iOSApplication;Defined in: application/application-common.ts
Returns
Inherited from
ApplicationCommon.iOSApplication
nativeApp
Get Signature
get nativeApp(): Application;Defined in: application/application.d.ts:77
The android Application object instance provided to the init of the module.
Returns
Application
packageName
Get Signature
get packageName(): string;Defined in: application/application.d.ts:82
Deprecated
Use Utils.android.getPackageName() instead.
Returns
string
paused
Get Signature
get paused(): boolean;Defined in: application/application.d.ts:109
Deprecated
Use Application.suspended instead.
Returns
boolean
startActivity
Get Signature
get startActivity(): AppCompatActivity;Defined in: application/application.d.ts:87
The main (start) Activity for the application.
Returns
AppCompatActivity
suspended
Get Signature
get suspended(): boolean;Defined in: application/application-common.ts
Returns
boolean
Inherited from
Methods
addCss()
addCss(cssText: string, attributeScoped?: boolean): void;Defined in: application/application-common.ts
Parameters
| Parameter | Type |
|---|---|
cssText | string |
attributeScoped? | boolean |
Returns
void
Inherited from
applyCssClass()
applyCssClass(
rootView: View,
cssClasses: string[],
newCssClass: string,
skipCssUpdate?: boolean): void;Defined in: application/application-common.ts
Applies the the newCssClass to the rootView and removes all other css classes from cssClasses previously applied to the rootView.
Parameters
| Parameter | Type | Description |
|---|---|---|
rootView | View | - |
cssClasses | string[] | - |
newCssClass | string | - |
skipCssUpdate? | boolean | - |
Returns
void
Inherited from
ApplicationCommon.applyCssClass
createRootView()
createRootView(
view?: View,
fireLaunchEvent?: boolean,
additionalLanchEventData?: any): View;Defined in: application/application-common.ts
Parameters
| Parameter | Type |
|---|---|
view? | View |
fireLaunchEvent? | boolean |
additionalLanchEventData? | any |
Returns
Inherited from
ApplicationCommon.createRootView
getCssFileName()
getCssFileName(): string;Defined in: application/application-common.ts
Gets css file name for the application.
Returns
string
Inherited from
ApplicationCommon.getCssFileName
getLayoutDirection()
protected getLayoutDirection(): LayoutDirectionType;Defined in: application/application-common.ts
Returns
Inherited from
ApplicationCommon.getLayoutDirection
getMainEntry()
getMainEntry(): any;Defined in: application/application-common.ts
Returns
any
The main entry of the application
Inherited from
ApplicationCommon.getMainEntry
getNativeApplication()
getNativeApplication(): Application;Defined in: application/application.d.ts:67
Returns
Application
Overrides
ApplicationCommon.getNativeApplication
getOrientation()
protected getOrientation(): "portrait" | "landscape" | "unknown";Defined in: application/application-common.ts
Returns
"portrait" | "landscape" | "unknown"
Inherited from
ApplicationCommon.getOrientation
getRegisteredBroadcastReceiver()
getRegisteredBroadcastReceiver(intentFilter: string): BroadcastReceiver;Defined in: application/application.d.ts:132
Get a registered BroadcastReceiver, then you can get the result code of BroadcastReceiver in onReceiveCallback method.
Parameters
| Parameter | Type | Description |
|---|---|---|
intentFilter | string | A string containing the intent filter. |
Returns
BroadcastReceiver
Deprecated
Use getRegisteredBroadcastReceivers instead.
getRegisteredBroadcastReceivers()
getRegisteredBroadcastReceivers(intentFilter: string): BroadcastReceiver[];Defined in: application/application.d.ts:137
Get all registered BroadcastReceivers for a specific intent filter.
Parameters
| Parameter | Type | Description |
|---|---|---|
intentFilter | string | a string containing the intent filter |
Returns
BroadcastReceiver[]
getResources()
getResources(): any;Defined in: application/application-common.ts
Get application level static resources.
Returns
any
Inherited from
ApplicationCommon.getResources
getRootView()
getRootView(): View;Defined in: application/application-common.ts
Returns
Inherited from
getSystemAppearance()
protected getSystemAppearance(): "dark" | "light";Defined in: application/application-common.ts
Returns
"dark" | "light"
Inherited from
ApplicationCommon.getSystemAppearance
hasLaunched()
hasLaunched(): boolean;Defined in: application/application-common.ts
Returns
boolean
Inherited from
initRootView()
initRootView(rootView: View): void;Defined in: application/application-common.ts
Parameters
| Parameter | Type |
|---|---|
rootView | View |
Returns
void
Inherited from
ApplicationCommon.initRootView
layoutDirection()
layoutDirection(): LayoutDirectionType;Defined in: application/application-common.ts
Returns
Inherited from
ApplicationCommon.layoutDirection
layoutDirectionChanged()
layoutDirectionChanged(rootView: View, newLayoutDirection: LayoutDirectionType): void;Defined in: application/application-common.ts
Updates root view classes including those of modals
Parameters
| Parameter | Type | Description |
|---|---|---|
rootView | View | the root view |
newLayoutDirection | LayoutDirectionType | the new layout direction change |
Returns
void
Inherited from
ApplicationCommon.layoutDirectionChanged
loadAppCss()
loadAppCss(): void;Defined in: application/application-common.ts
Loads immediately the app.css. By default the app.css file is loaded shortly after "loaded". For the Android snapshot the CSS can be parsed during the snapshot generation, as the CSS does not depend on runtime APIs, and loadAppCss will be called explicitly.
Returns
void
Inherited from
notifyLaunch()
protected notifyLaunch(additionalLanchEventData?: any): View;Defined in: application/application-common.ts
Parameters
| Parameter | Type |
|---|---|
additionalLanchEventData? | any |
Returns
Inherited from
ApplicationCommon.notifyLaunch
on()
Call Signature
on(
event: "activityCreated",
callback: (args: AndroidActivityBundleEventData) => void,
thisArg?: any): void;Defined in: application/application.d.ts:139
Parameters
| Parameter | Type |
|---|---|
event | "activityCreated" |
callback | (args: AndroidActivityBundleEventData) => void |
thisArg? | any |
Returns
void
Overrides
ApplicationCommon.onCall Signature
on(
event: "activityDestroyed",
callback: (args: AndroidActivityEventData) => void,
thisArg?: any): void;Defined in: application/application.d.ts:140
This event is raised when application css is changed.
Parameters
| Parameter | Type |
|---|---|
event | "activityDestroyed" |
callback | (args: AndroidActivityEventData) => void |
thisArg? | any |
Returns
void
Overrides
ApplicationCommon.onCall Signature
on(
event: "activityStarted",
callback: (args: AndroidActivityEventData) => void,
thisArg?: any): void;Defined in: application/application.d.ts:141
Event raised then livesync operation is performed.
Parameters
| Parameter | Type |
|---|---|
event | "activityStarted" |
callback | (args: AndroidActivityEventData) => void |
thisArg? | any |
Returns
void
Overrides
ApplicationCommon.onCall Signature
on(
event: "activityPaused",
callback: (args: AndroidActivityEventData) => void,
thisArg?: any): void;Defined in: application/application.d.ts:142
This event is raised on application launchEvent.
Parameters
| Parameter | Type |
|---|---|
event | "activityPaused" |
callback | (args: AndroidActivityEventData) => void |
thisArg? | any |
Returns
void
Overrides
ApplicationCommon.onCall Signature
on(
event: "activityResumed",
callback: (args: AndroidActivityEventData) => void,
thisArg?: any): void;Defined in: application/application.d.ts:143
Experimental
This event is raised after the application has performed most of its startup actions. Its intent is to be suitable for measuring app startup times.
Parameters
| Parameter | Type |
|---|---|
event | "activityResumed" |
callback | (args: AndroidActivityEventData) => void |
thisArg? | any |
Returns
void
Overrides
ApplicationCommon.onCall Signature
on(
event: "activityStopped",
callback: (args: AndroidActivityEventData) => void,
thisArg?: any): void;Defined in: application/application.d.ts:144
This event is raised when the Application is suspended.
Parameters
| Parameter | Type |
|---|---|
event | "activityStopped" |
callback | (args: AndroidActivityEventData) => void |
thisArg? | any |
Returns
void
Overrides
ApplicationCommon.onCall Signature
on(
event: "saveActivityState",
callback: (args: AndroidActivityBundleEventData) => void,
thisArg?: any): void;Defined in: application/application.d.ts:145
This event is raised when the Application is resumed after it has been suspended.
Parameters
| Parameter | Type |
|---|---|
event | "saveActivityState" |
callback | (args: AndroidActivityBundleEventData) => void |
thisArg? | any |
Returns
void
Overrides
ApplicationCommon.onCall Signature
on(
event: "activityResult",
callback: (args: AndroidActivityResultEventData) => void,
thisArg?: any): void;Defined in: application/application.d.ts:146
This event is raised when the Application is about to exit.
Parameters
| Parameter | Type |
|---|---|
event | "activityResult" |
callback | (args: AndroidActivityResultEventData) => void |
thisArg? | any |
Returns
void
Overrides
ApplicationCommon.onCall Signature
on(
event: "activityBackPressed",
callback: (args: AndroidActivityBackPressedEventData) => void,
thisArg?: any): void;Defined in: application/application.d.ts:147
This event is raised when there is low memory on the target device.
Parameters
| Parameter | Type |
|---|---|
event | "activityBackPressed" |
callback | (args: AndroidActivityBackPressedEventData) => void |
thisArg? | any |
Returns
void
Overrides
ApplicationCommon.onCall Signature
on(
event: "activityNewIntent",
callback: (args: AndroidActivityNewIntentEventData) => void,
thisArg?: any): void;Defined in: application/application.d.ts:148
This event is raised when an uncaught error occurs while the application is running.
Parameters
| Parameter | Type |
|---|---|
event | "activityNewIntent" |
callback | (args: AndroidActivityNewIntentEventData) => void |
thisArg? | any |
Returns
void
Overrides
ApplicationCommon.onCall Signature
on(
event: "activityRequestPermissions",
callback: (args: AndroidActivityRequestPermissionsEventData) => void,
thisArg?: any): void;Defined in: application/application.d.ts:149
This event is raised when an discarded error occurs while the application is running.
Parameters
| Parameter | Type |
|---|---|
event | "activityRequestPermissions" |
callback | (args: AndroidActivityRequestPermissionsEventData) => void |
thisArg? | any |
Returns
void
Overrides
ApplicationCommon.onorientation()
orientation(): "portrait" | "landscape" | "unknown";Defined in: application/application-common.ts
Returns
"portrait" | "landscape" | "unknown"
Inherited from
orientationChanged()
orientationChanged(rootView: View, newOrientation: "portrait" | "landscape" | "unknown"): void;Defined in: application/application-common.ts
Parameters
| Parameter | Type |
|---|---|
rootView | View |
newOrientation | "portrait" | "landscape" | "unknown" |
Returns
void
Inherited from
ApplicationCommon.orientationChanged
registerBroadcastReceiver()
registerBroadcastReceiver(intentFilter: string, onReceiveCallback: (context: Context, intent: Intent) => void): () => void;Defined in: application/application.d.ts:118
Register a BroadcastReceiver to be run in the main activity thread. The receiver will be called with any broadcast Intent that matches filter, in the main application thread. For more information, please visit 'http://developer.android.com/reference/android/content/Context.html#registerReceiver(android.content.BroadcastReceiver, android.content.IntentFilter)'
Parameters
| Parameter | Type | Description |
|---|---|---|
intentFilter | string | A string containing the intent filter. |
onReceiveCallback | (context: Context, intent: Intent) => void | A callback function that will be called each time the receiver receives a broadcast. |
Returns
A function that can be called to unregister the receiver.
() => void
resetRootView()
resetRootView(entry?: string | NavigationEntry): void;Defined in: application/application-common.ts
Parameters
| Parameter | Type |
|---|---|
entry? | string | NavigationEntry |
Returns
void
Inherited from
ApplicationCommon.resetRootView
run()
run(entry?: string | NavigationEntry): void;Defined in: application/application-common.ts
Parameters
| Parameter | Type |
|---|---|
entry? | string | NavigationEntry |
Returns
void
Inherited from
setAutoSystemAppearanceChanged()
setAutoSystemAppearanceChanged(value: boolean): void;Defined in: application/application-common.ts
enable/disable systemAppearanceChanged
Parameters
| Parameter | Type |
|---|---|
value | boolean |
Returns
void
Inherited from
ApplicationCommon.setAutoSystemAppearanceChanged
setCssFileName()
setCssFileName(cssFileName: string): void;Defined in: application/application-common.ts
Sets css file name for the application.
Parameters
| Parameter | Type |
|---|---|
cssFileName | string |
Returns
void
Inherited from
ApplicationCommon.setCssFileName
setInBackground()
setInBackground(value: boolean, additonalData?: any): void;Defined in: application/application-common.ts
Parameters
| Parameter | Type |
|---|---|
value | boolean |
additonalData? | any |
Returns
void
Inherited from
ApplicationCommon.setInBackground
setLayoutDirection()
protected setLayoutDirection(value: LayoutDirectionType): void;Defined in: application/application-common.ts
Parameters
| Parameter | Type |
|---|---|
value | LayoutDirectionType |
Returns
void
Inherited from
ApplicationCommon.setLayoutDirection
setMaxRefreshRate()
setMaxRefreshRate(options?: {
max?: number;
min?: number;
preferred?: number;
}): void;Defined in: application/application-common.ts
iOS Only Dynamically change the preferred frame rate For devices (iOS 15+) which support min/max/preferred frame rate you can specify ranges For devices (iOS < 15), you can specify the max frame rate see: https://developer.apple.com/documentation/quartzcore/optimizing_promotion_refresh_rates_for_iphone_13_pro_and_ipad_pro To use, ensure your Info.plist has:
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>Parameters
| Parameter | Type | Description |
|---|---|---|
options? | { max?: number; min?: number; preferred?: number; } | { min?: number; max?: number; preferred?: number } |
options.max? | number | - |
options.min? | number | - |
options.preferred? | number | - |
Returns
void
Inherited from
ApplicationCommon.setMaxRefreshRate
setOrientation()
protected setOrientation(value: "portrait" | "landscape" | "unknown"): void;Defined in: application/application-common.ts
Parameters
| Parameter | Type |
|---|---|
value | "portrait" | "landscape" | "unknown" |
Returns
void
Inherited from
ApplicationCommon.setOrientation
setResources()
setResources(res: any): void;Defined in: application/application-common.ts
Set application level static resources.
Parameters
| Parameter | Type |
|---|---|
res | any |
Returns
void
Inherited from
ApplicationCommon.setResources
setSuspended()
setSuspended(value: boolean, additonalData?: any): void;Defined in: application/application-common.ts
Parameters
| Parameter | Type |
|---|---|
value | boolean |
additonalData? | any |
Returns
void
Inherited from
ApplicationCommon.setSuspended
setSystemAppearance()
protected setSystemAppearance(value: "dark" | "light"): void;Defined in: application/application-common.ts
Parameters
| Parameter | Type |
|---|---|
value | "dark" | "light" |
Returns
void
Inherited from
ApplicationCommon.setSystemAppearance
systemAppearance()
systemAppearance(): "dark" | "light";Defined in: application/application-common.ts
Returns
"dark" | "light"
Inherited from
ApplicationCommon.systemAppearance
systemAppearanceChanged()
systemAppearanceChanged(rootView: View, newSystemAppearance: "dark" | "light"): void;Defined in: application/application-common.ts
Updates root view classes including those of modals
Parameters
| Parameter | Type | Description |
|---|---|---|
rootView | View | the root view |
newSystemAppearance | "dark" | "light" | the new appearance change |
Returns
void
Inherited from
ApplicationCommon.systemAppearanceChanged
unregisterBroadcastReceiver()
unregisterBroadcastReceiver(intentFilter: string): void;Defined in: application/application.d.ts:125
Unregister a previously registered BroadcastReceiver. For more information, please visit 'http://developer.android.com/reference/android/content/Context.html#unregisterReceiver(android.content.BroadcastReceiver)'
Parameters
| Parameter | Type | Description |
|---|---|---|
intentFilter | string | A string containing the intent filter with which the receiver was originally registered. |
Returns
void
- Previous
- ActivityIndicator
- Next
- Animation