StartupMode


enum StartupMode : Enum


Summary

Enum Values

COLD

Startup from scratch - app's process is not alive, and must be started in addition to Activity creation.

HOT

Bring existing activity to the foreground, process and Activity still exist from previous launch.

WARM

Create and display a new Activity in a currently running app process.

Public functions

StartupMode
valueOf(value: String)

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

Array<StartupMode>

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

Public properties

EnumEntries<StartupMode>

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

Enum Values

COLD

val StartupMode.COLDStartupMode

Startup from scratch - app's process is not alive, and must be started in addition to Activity creation.

See Cold startup documentation

HOT

val StartupMode.HOTStartupMode

Bring existing activity to the foreground, process and Activity still exist from previous launch.

See Hot startup documentation

WARM

val StartupMode.WARMStartupMode

Create and display a new Activity in a currently running app process.

See Warm startup documentation

Public functions

valueOf

Added in 1.1.0
fun valueOf(value: String): StartupMode

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

Throws
kotlin.IllegalArgumentException

if this enum type has no constant with the specified name

values

Added in 1.1.0
fun values(): Array<StartupMode>

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.

Public properties

entries

val entriesEnumEntries<StartupMode>

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

This method may be used to iterate over the enum entries.