AppState

Represents the current state of the application

Entries

Link copied to clipboard

The application is in the foreground and receiving events

Link copied to clipboard

The application is in the foreground but not receiving events (e.g., when an incoming phone call or SMS message arrives)

Link copied to clipboard

The application is running in the background

Link copied to clipboard

The application is in the foreground (covers both active and inactive states)

Properties

Link copied to clipboard
Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun valueOf(value: String): AppState

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.)

Link copied to clipboard

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