Classes
AndroidApplication
AndroidApplication
Summary β
Properties
- activityBackPressedEvent
- activityBackPressedEvent
- activityCreatedEvent
- activityCreatedEvent
- activityDestroyedEvent
- activityDestroyedEvent
- activityNewIntentEvent
- activityNewIntentEvent
- activityPausedEvent
- activityPausedEvent
- activityRequestPermissionsEvent
- activityRequestPermissionsEvent
- activityResultEvent
- activityResultEvent
- activityResumedEvent
- activityResumedEvent
- activityStartedEvent
- activityStartedEvent
- activityStoppedEvent
- activityStoppedEvent
- saveActivityStateEvent
- saveActivityStateEvent
- autoSystemAppearanceChanged
- backgroundEvent
- cssChangedEvent
- discardedErrorEvent
- displayedEvent
- exitEvent
- fontScaleChangedEvent
- foregroundEvent
- hasListeners
- hasListeners
- launchEvent
- livesyncEvent
- loadAppCssEvent
- lowMemoryEvent
- mainEntry
- notify
- notify
- off
- off
- on
- once
- once
- orientationChangedEvent
- resumeEvent
- started
- suspendEvent
- systemAppearanceChangedEvent
- uncaughtErrorEvent
Accessors
Methods
- getNativeApplication
- getRegisteredBroadcastReceiver
- on
- registerBroadcastReceiver
- unregisterBroadcastReceiver
- addCss
- applyCssClass
- createRootView
- getCssFileName
- getMainEntry
- getOrientation
- getResources
- getRootView
- getSystemAppearance
- hasLaunched
- initRootView
- loadAppCss
- notifyLaunch
- orientation
- orientationChanged
- resetRootView
- run
- setAutoSystemAppearanceChanged
- setCssFileName
- setInBackground
- setMaxRefreshRate
- setOrientation
- setResources
- setSuspended
- setSystemAppearance
- systemAppearance
- systemAppearanceChanged
Properties β
activityBackPressedEvent β
Readonly
activityCreatedEvent β
Readonly
activityDestroyedEvent β
Readonly
activityNewIntentEvent β
Readonly
activityPausedEvent β
Readonly
activityRequestPermissionsEvent β
Readonly
activityResultEvent β
Readonly
activityResumedEvent β
Readonly
activityStartedEvent β
Readonly
activityStoppedEvent β
Readonly
saveActivityStateEvent β
Readonly
activityBackPressedEvent β
StaticReadonly
activityCreatedEvent β
StaticReadonly
activityDestroyedEvent β
StaticReadonly
activityNewIntentEvent β
StaticReadonly
activityPausedEvent β
StaticReadonly
activityRequestPermissionsEvent β
StaticReadonly
activityResultEvent β
StaticReadonly
activityResumedEvent β
StaticReadonly
activityStartedEvent β
StaticReadonly
activityStoppedEvent β
StaticReadonly
saveActivityStateEvent β
StaticReadonly
Accessors β
backgrounded β
Returns boolean
context β
Returns Context
foregroundActivity β
The currently active (loaded) [android Activity](http://developer.android.com/reference/android/app/Activity.html).
This property is automatically updated upon Activity events.
Returns AppCompatActivity
nativeApp β
The [android Application](http://developer.android.com/reference/android/app/Application.html) object instance provided to the init of the module.
Returns Application
packageName β
Returns string
paused β
Returns boolean
startActivity β
The main (start) Activity for the application.
Returns AppCompatActivity
Methods β
getNativeApplication β
Returns Application
getRegisteredBroadcastReceiver β
Get a registered BroadcastReceiver, then you can get the result code of BroadcastReceiver in onReceiveCallback method.
Parameter Default Description
intentFilter
string
A string containing the intent filter.
Returns BroadcastReceiver
on β
on(
event: "activityCreated",
callback: (args:AndroidActivityBundleEventData) =>void,
thisArg?: any
): void
Parameter Default Description
event
"activityCreated"
callback
(args: AndroidActivityBundleEventData) => void
thisArg
any
Returns void
on(
event: "activityDestroyed",
callback: (args:AndroidActivityEventData) =>void,
thisArg?: any
): void
This event is raised when application css is changed.
Parameter Default Description
event
"activityDestroyed"
callback
(args: AndroidActivityEventData) => void
thisArg
any
Returns void
on(
event: "activityStarted",
callback: (args:AndroidActivityEventData) =>void,
thisArg?: any
): void
Event raised then livesync operation is performed.
Parameter Default Description
event
"activityStarted"
callback
(args: AndroidActivityEventData) => void
thisArg
any
Returns void
on(
event: "activityPaused",
callback: (args:AndroidActivityEventData) =>void,
thisArg?: any
): void
This event is raised when application css is changed.
Parameter Default Description
event
"activityPaused"
callback
(args: AndroidActivityEventData) => void
thisArg
any
Returns void
on(
event: "activityResumed",
callback: (args:AndroidActivityEventData) =>void,
thisArg?: any
): void
This event is raised on application launchEvent.
Parameter Default Description
event
"activityResumed"
callback
(args: AndroidActivityEventData) => void
thisArg
any
Returns void
on(
event: "activityStopped",
callback: (args:AndroidActivityEventData) =>void,
thisArg?: any
): void
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.
Parameter Default Description
event
"activityStopped"
callback
(args: AndroidActivityEventData) => void
thisArg
any
Returns void
on(
event: "saveActivityState",
callback: (args:AndroidActivityBundleEventData) =>void,
thisArg?: any
): void
This event is raised when the Application is suspended.
Parameter Default Description
event
"saveActivityState"
callback
(args: AndroidActivityBundleEventData) => void
thisArg
any
Returns void
on(
event: "activityResult",
callback: (args:AndroidActivityResultEventData) =>void,
thisArg?: any
): void
This event is raised when the Application is resumed after it has been suspended.
Parameter Default Description
event
"activityResult"
callback
(args: AndroidActivityResultEventData) => void
thisArg
any
Returns void
on(
event: "activityBackPressed",
callback: (args:AndroidActivityBackPressedEventData) =>void,
thisArg?: any
): void
This event is raised when the Application is about to exit.
Parameter Default Description
event
"activityBackPressed"
callback
(args: AndroidActivityBackPressedEventData) => void
thisArg
any
Returns void
on(
event: "activityNewIntent",
callback: (args:AndroidActivityNewIntentEventData) =>void,
thisArg?: any
): void
This event is raised when there is low memory on the target device.
Parameter Default Description
event
"activityNewIntent"
callback
(args: AndroidActivityNewIntentEventData) => void
thisArg
any
Returns void
on(
event: "activityRequestPermissions",
callback: (args:AndroidActivityRequestPermissionsEventData) =>void,
thisArg?: any
): void
This event is raised when an uncaught error occurs while the application is running.
Parameter Default Description
event
"activityRequestPermissions"
callback
(args: AndroidActivityRequestPermissionsEventData) => void
thisArg
any
Returns void
registerBroadcastReceiver β
registerBroadcastReceiver(
intentFilter: string,
onReceiveCallback: (context:Context, intent:Intent) =>void
): void
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%28android.content.BroadcastReceiver,%20android.content.IntentFilter%29'
Parameter Default 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 void
unregisterBroadcastReceiver β
Unregister a previously registered BroadcastReceiver.
For more information, please visit 'http://developer.android.com/reference/android/content/Context.html#unregisterReceiver(android.content.BroadcastReceiver)'
Parameter Default Description
intentFilter
string
A string containing the intent filter with which the receiver was originally registered.
Returns void
- Previous
- ActivityIndicator
- Next
- Animation
On this page
- Summary
- Properties
- activityBackPressedEvent
- activityCreatedEvent
- activityDestroyedEvent
- activityNewIntentEvent
- activityPausedEvent
- activityRequestPermissionsEvent
- activityResultEvent
- activityResumedEvent
- activityStartedEvent
- activityStoppedEvent
- saveActivityStateEvent
- activityBackPressedEvent
- activityCreatedEvent
- activityDestroyedEvent
- activityNewIntentEvent
- activityPausedEvent
- activityRequestPermissionsEvent
- activityResultEvent
- activityResumedEvent
- activityStartedEvent
- activityStoppedEvent
- saveActivityStateEvent
- Accessors
- Methods