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 functions

java-static Stage!
valueOf(name: String!)

Returns the enum constant of this type with the specified name.

java-static Array<Stage!>!

Returns an array containing the constants of this enum type, in the order they're declared.

Enum Values

CREATED

val Stage.CREATEDStage

Indicates that onCreate has been called.

DESTROYED

val Stage.DESTROYEDStage

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

PAUSED

val Stage.PAUSEDStage

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

PRE_ON_CREATE

val Stage.PRE_ON_CREATEStage

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

RESTARTED

val Stage.RESTARTEDStage

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

RESUMED

val Stage.RESUMEDStage

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

STARTED

val Stage.STARTEDStage

Indicates that onStart has been called.

STOPPED

val Stage.STOPPEDStage

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

Public functions

valueOf

java-static fun valueOf(name: String!): Stage!

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Returns
Stage!

the enum constant with the specified name

Throws
java.lang.IllegalArgumentException

if this enum type has no constant with the specified name

values

java-static fun values(): Array<Stage!>!

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

Returns
Array<Stage!>!

an array containing the constants of this enum type, in the order they're declared