{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
enum Stage
An enumeration of the lifecycle stages an activity undergoes.
See the android.app.Activity javadoc for detailed documentation.
Enum Values |
|
|---|---|
CREATED |
Indicates that onCreate has been called. |
DESTROYED |
Indicates that onDestroy has been called - system is shutting down the activity. |
PAUSED |
Indicates that onPause has been called - activity is no longer in the foreground. |
PRE_ON_CREATE |
Indicates that onCreate is being called before any onCreate code executes. |
RESTARTED |
Indicates that onResume has been called - we have navigated back to the activity. |
RESUMED |
Indicates that onResume has been called - activity is now visible to user. |
STARTED |
Indicates that onStart has been called. |
STOPPED |
Indicates that onStop has been called - activity is no longer visible to the user. |
val Stage.DESTROYED: Stage
Indicates that onDestroy has been called - system is shutting down the activity.
val Stage.PAUSED: Stage
Indicates that onPause has been called - activity is no longer in the foreground.
val Stage.PRE_ON_CREATE: Stage
Indicates that onCreate is being called before any onCreate code executes.
val Stage.RESTARTED: Stage
Indicates that onResume has been called - we have navigated back to the activity.
val Stage.RESUMED: Stage
Indicates that onResume has been called - activity is now visible to user.
val Stage.STOPPED: Stage
Indicates that onStop has been called - activity is no longer visible to the user.