Classes
ApplicationCommon
ApplicationCommon
Summary 
Properties
- autoSystemAppearanceChanged
 - backgroundEvent
 - cssChangedEvent
 - discardedErrorEvent
 - displayedEvent
 - exitEvent
 - fontScaleChangedEvent
 - foregroundEvent
 - hasListeners
 - hasListeners
 - launchEvent
 - livesyncEvent
 - loadAppCssEvent
 - lowMemoryEvent
 - mainEntry
 - notify
 - notify
 - off
 - off
 - on
 - on
 - once
 - once
 - orientationChangedEvent
 - resumeEvent
 - started
 - suspendEvent
 - systemAppearanceChangedEvent
 - uncaughtErrorEvent
 
Methods
- addCss
 - applyCssClass
 - createRootView
 - getCssFileName
 - getMainEntry
 - getNativeApplication
 - getOrientation
 - getResources
 - getRootView
 - getSystemAppearance
 - hasLaunched
 - initRootView
 - loadAppCss
 - notifyLaunch
 - orientation
 - orientationChanged
 - resetRootView
 - run
 - setAutoSystemAppearanceChanged
 - setCssFileName
 - setInBackground
 - setMaxRefreshRate
 - setOrientation
 - setResources
 - setSuspended
 - setSystemAppearance
 - systemAppearance
 - systemAppearanceChanged
 
Properties 
autoSystemAppearanceChanged 
Boolean to enable/disable systemAppearanceChanged
backgroundEvent 
Readonly
cssChangedEvent 
Readonly
discardedErrorEvent 
Readonly
displayedEvent 
Readonly
exitEvent 
Readonly
fontScaleChangedEvent 
Readonly
foregroundEvent 
Readonly
hasListeners 
launchEvent 
Readonly
livesyncEvent 
Readonly
loadAppCssEvent 
Readonly
lowMemoryEvent 
Readonly
mainEntry 
Protected
notify 
off 
on 
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: "cssChanged", callback: (args: CssChangedEventData) => 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;
}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: "cssChanged", callback: (args: CssChangedEventData) => 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;
}orientationChangedEvent 
Readonly
resumeEvent 
Readonly
started 
suspendEvent 
Readonly
systemAppearanceChangedEvent 
Readonly
uncaughtErrorEvent 
Readonly
hasListeners 
Static
notify 
Static
off 
Static
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: "cssChanged", callback: (args: CssChangedEventData) => 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;
}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: "cssChanged", callback: (args: CssChangedEventData) => 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;
}Accessors 
AndroidApplication 
get AndroidApplication(): AndroidApplication
 Returns AndroidApplication
android 
get android(): AndroidApplication
 Returns AndroidApplication
iOSApplication 
get iOSApplication(): iOSApplication
 Returns iOSApplication
inBackground 
 Returns boolean
ios 
get ios(): iOSApplication
 Returns iOSApplication
suspended 
 Returns boolean
Methods 
addCss 
| Parameter | Default | Description | 
cssText |  | string | 
attributeScoped |  | boolean | 
 Returns void
applyCssClass 
applyCssClass(rootView: View, cssClasses: string[], newCssClass: string): void
Applies the the 
`newCssClass` to the `rootView` and removes all other css classes from `cssClasses`
previously applied to the `rootView`.| Parameter | Default | Description | 
rootView |  | |
cssClasses |  | string[] | 
newCssClass |  | string | 
 Returns void
createRootView 
| Parameter | Default | Description | 
view |  | |
fireLaunchEvent |  | boolean | 
additionalLanchEventData |  | any | 
 Returns View
getCssFileName 
Gets css file name for the application.
 Returns string
getMainEntry 
 Returns NavigationEntry
getNativeApplication 
 Returns any
getOrientation 
Protected
 Returns "portrait" | "landscape" | "unknown"
getResources 
Get application level static resources.
 Returns any
getSystemAppearance 
Protected
 Returns "dark" | "light"
hasLaunched 
 Returns boolean
initRootView 
initRootView(rootView: View): void
| Parameter | Default | Description | 
rootView |  | 
 Returns void
loadAppCss 
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
notifyLaunch 
Protected
orientation 
 Returns "portrait" | "landscape" | "unknown"
orientationChanged 
orientationChanged(rootView: View, newOrientation: "portrait" | "landscape" | "unknown"): void
| Parameter | Default | Description | 
rootView |  | |
newOrientation |  | "portrait" | "landscape" | "unknown" | 
 Returns void
resetRootView 
| Parameter | Default | Description | 
entry |  | string | NavigationEntry | 
 Returns void
run 
| Parameter | Default | Description | 
entry |  | string | NavigationEntry | 
 Returns void
setAutoSystemAppearanceChanged 
enable/disable systemAppearanceChanged
| Parameter | Default | Description | 
value |  | boolean | 
 Returns void
setCssFileName 
Sets css file name for the application.
| Parameter | Default | Description | 
cssFileName |  | string | 
 Returns void
setInBackground 
| Parameter | Default | Description | 
value |  | boolean | 
additonalData |  | any | 
 Returns void
setMaxRefreshRate 
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:
```xml
  CADisableMinimumFrameDurationOnPhone 
   
```| Parameter | Default | Description | 
options |  | {
  max?: number
  min?: number
}{ min?: number; max?: number; preferred?: number }  | 
 Returns void
setOrientation 
Protected
| Parameter | Default | Description | 
value |  | "portrait" | "landscape" | "unknown" | 
 Returns void
setResources 
Set application level static resources.
| Parameter | Default | Description | 
res |  | any | 
 Returns void
setSuspended 
| Parameter | Default | Description | 
value |  | boolean | 
additonalData |  | any | 
 Returns void
setSystemAppearance 
Protected
| Parameter | Default | Description | 
value |  | "dark" | "light" | 
 Returns void
systemAppearance 
 Returns "dark" | "light"
- Previous
 - Animation
 - Next
 - Background