StartupMode

public enum StartupMode extends 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 methods

final @NonNull StartupMode

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

final @NonNull StartupMode[]

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

Enum Values

COLD

StartupMode StartupMode.COLD

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

See Cold startup documentation

HOT

StartupMode StartupMode.HOT

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

See Hot startup documentation

WARM

StartupMode StartupMode.WARM

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

See Warm startup documentation

Public methods

valueOf

Added in 1.1.0
public final @NonNull StartupMode valueOf(@NonNull String value)

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
public final @NonNull StartupMode[] values()

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.