ActivityEvent

sealed class ActivityEvent

Represent different events emitted in response to lifecycle triggers from the host application

Inheritors

Types

Link copied to clipboard

Emitted when the host application moves to the background, i.e. the last active activity Stopped

Link copied to clipboard

Emitted when Activity.onConfigurationChanged is called from an activity within the host app

Link copied to clipboard
class Created(val activity: Activity, bundle: Bundle?) : ActivityEvent

Emitted when Activity.onCreate is called from an activity within the host app

Link copied to clipboard
class FirstStarted(val activity: Activity) : ActivityEvent

Emitted when the host application moves to the foreground i.e. an activity Started, and the application transitions from 0 to 1 started activity

Link copied to clipboard
class Paused(val activity: Activity) : ActivityEvent

Emitted when Activity.onPause is called from an activity within the host app

Link copied to clipboard
class Resumed(val activity: Activity) : ActivityEvent

Emitted when Activity.onResume is called from an activity within the host app

Link copied to clipboard
class SaveInstanceState(val activity: Activity, bundle: Bundle) : ActivityEvent

Emitted when Activity.onSaveInstanceState is called from an activity within the host app

Link copied to clipboard
class Started(val activity: Activity) : ActivityEvent

Emitted when Activity.onStart is called from an activity within the host app

Link copied to clipboard
class Stopped(val activity: Activity) : ActivityEvent

Emitted when Activity.onStop is called from an activity within the host app

Properties

Link copied to clipboard
open val activity: Activity? = null
Link copied to clipboard
val bundle: Bundle? = null
Link copied to clipboard

Get the type of the event as a string (e.g. for logging)