ForegroundActivityEvent

sealed interface ForegroundActivityEvent : UIEvent

Lifecycle events emitted through the SDK's com.okta.authfoundation.events.EventCoordinator while the browser redirect flow is in the foreground. Observe these via an com.okta.authfoundation.events.EventHandler to react to the redirect activity's lifecycle (for example, to detect a user-cancelled flow). This is a UIEvent.

Inheritors

Types

Link copied to clipboard

Emitted when the user presses the back button while the redirect activity is in the foreground.

Link copied to clipboard

Emitted when the redirect activity is created and the browser flow is about to launch.

Link copied to clipboard

Emitted when the redirect activity is destroyed.

Link copied to clipboard

Emitted when a redirect Intent is delivered back to the activity (the browser returned a result).

Link copied to clipboard

Emitted when the activity is paused (the browser or another activity has taken focus).

Link copied to clipboard

Emitted when the user returns to the app without completing the flow (e.g. back-navigation), typically preceding a WebAuthentication.FlowCancelledException.