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`
. Returns void
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
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
On this page
- Summary
- Properties
- autoSystemAppearanceChanged
- backgroundEvent
- cssChangedEvent
- discardedErrorEvent
- displayedEvent
- exitEvent
- fontScaleChangedEvent
- foregroundEvent
- hasListeners
- launchEvent
- livesyncEvent
- loadAppCssEvent
- lowMemoryEvent
- mainEntry
- notify
- off
- on
- once
- orientationChangedEvent
- resumeEvent
- started
- suspendEvent
- systemAppearanceChangedEvent
- uncaughtErrorEvent
- hasListeners
- notify
- off
- on
- once
- Accessors
- 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