Get the state of the activity.
Runs the action once the activity is in the expected state.
If the activity is in the expected state then the action is run immediately. Otherwise, the expected state is awaited and then the action is invoked.
The state when the action must be run.
The action callback that must be invoked.
The promise to the action result.
Runs an action that blocks the UI.
If the activity is in the active state then the action is run immediately. Otherwise, the active state is awaited and then the action is invoked. Consequent actions that are run using this method are deferred until the current action is resolved.
The action callback that must be invoked.
The promise to the action result.
Starts an activity for the intent.
The intent that starts an activity.
true
if activity has started, or false
otherwise.
Starts an activity for the intent and wait for it to return the result.
Note: This operation requires the user interaction, consider using ActivityManager.runUserInteraction to ensure that consequent UI-related operations are suspended until this one is completed.
The intent that starts an activity.
The activity result.
Subscribes a listener to activity status changes.
The activity went to background: user doesn't see the activity anymore.
The activity entered foreground: user can see the activity but cannot interact with it.
The activity became active: user can see the activity and can interact with it.
Get info about the current activity.