autoSystemAppearanceChanged: boolean
Boolean to enable/disable systemAppearanceChanged
backgroundEvent: "background" = "background"
cssChangedEvent: "cssChanged" = "cssChanged"
discardedErrorEvent
Readonly
discardedErrorEvent: "discardedError" = "discardedError"
displayedEvent: "displayed" = "displayed"
exitEvent: "exit" = "exit"
fontScaleChangedEvent
Readonly
fontScaleChangedEvent: "fontScaleChanged" = "fontScaleChanged"
foregroundEvent: "foreground" = "foreground"
hasListeners: (eventName: string) => boolean
launchEvent: "launch" = "launch"
livesyncEvent: "livesync" = "livesync"
loadAppCssEvent: "loadAppCss" = "loadAppCss"
lowMemoryEvent: "lowMemory" = "lowMemory"
mainEntry: NavigationEntry
notify: (eventData: T) => void
off: (eventNames: string, callback?: any, thisArg?: any) => void
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: { (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
orientationChangedEvent: "orientationChanged" = "orientationChanged"
resumeEvent: "resume" = "resume"
suspendEvent: "suspend" = "suspend"
systemAppearanceChangedEvent
Readonly
systemAppearanceChangedEvent: "systemAppearanceChanged" = "systemAppearanceChanged"
uncaughtErrorEvent
Readonly
uncaughtErrorEvent: "uncaughtError" = "uncaughtError"
hasListeners: (eventName: string) => boolean
notify: (eventData: T) => void
off: (eventNames: string, callback?: any, thisArg?: any) => void
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: { (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
get inBackground(): boolean
Methods
addCss(cssText: string, attributeScoped?: boolean): void
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
createRootView(view?: View, fireLaunchEvent?: boolean, additionalLanchEventData?: any): View
Gets css file name for the application.
Returns string
getMainEntry(): NavigationEntry
getNativeApplication(): any
getOrientation(): "portrait" | "landscape" | "unknown"
Returns "portrait" | "landscape" | "unknown"
Get application level static resources.
Returns any
getSystemAppearance Protected
getSystemAppearance(): "dark" | "light"
initRootView(rootView: View): void
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(additionalLanchEventData?: any): View
orientation(): "portrait" | "landscape" | "unknown"
Returns "portrait" | "landscape" | "unknown"
orientationChanged(rootView: View, newOrientation: "portrait" | "landscape" | "unknown"): void
resetRootView(entry?: string | NavigationEntry): void
run(entry?: string | NavigationEntry): void
setAutoSystemAppearanceChanged
setAutoSystemAppearanceChanged(value: boolean): void
enable/disable systemAppearanceChanged
Returns void
setCssFileName(cssFileName: string): void
Sets css file name for the application.
Returns void
setInBackground(value: boolean, additonalData?: any): void
setMaxRefreshRate(options?: { max?: number; min?: number }): void
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 ```
Returns void
setOrientation(value: "portrait" | "landscape" | "unknown"): void
setResources(res: any): void
Set application level static resources.
Returns void
setSuspended(value: boolean, additonalData?: any): void
setSystemAppearance
Protected
setSystemAppearance(value: "dark" | "light"): void
systemAppearance(): "dark" | "light"
systemAppearanceChanged(rootView: View, newSystemAppearance: "dark" | "light"): void
Updates root view classes including those of modals
Returns void
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4