Stage

enum Stage


An enumeration of the lifecycle stages an activity undergoes.

See the android.app.Activity javadoc for detailed documentation.

Summary

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.

Public methods

static @NonNull Stage
static @NonNull Array<@NonNull Stage>

Enum Values

CREATED

@NonNull
@NonNull Stage Stage.CREATED

Indicates that onCreate has been called.

DESTROYED

@NonNull
@NonNull Stage Stage.DESTROYED

Indicates that onDestroy has been called - system is shutting down the activity.

PAUSED

@NonNull
@NonNull Stage Stage.PAUSED

Indicates that onPause has been called - activity is no longer in the foreground.

PRE_ON_CREATE

@NonNull
@NonNull Stage Stage.PRE_ON_CREATE

Indicates that onCreate is being called before any onCreate code executes.

RESTARTED

@NonNull
@NonNull Stage Stage.RESTARTED

Indicates that onResume has been called - we have navigated back to the activity.

RESUMED

@NonNull
@NonNull Stage Stage.RESUMED

Indicates that onResume has been called - activity is now visible to user.

STARTED

@NonNull
@NonNull Stage Stage.STARTED

Indicates that onStart has been called.

STOPPED

@NonNull
@NonNull Stage Stage.STOPPED

Indicates that onStop has been called - activity is no longer visible to the user.

Public methods

valueOf

@NonNull
public static Stage valueOf(@NonNull String name)

values

@NonNull
public static Array<@NonNull Stagevalues()