Lifecycle.State

public static final enum Lifecycle.State
extends Enum<Lifecycle.State>

java.lang.Object
   ↳ java.lang.Enum<androidx.lifecycle.Lifecycle.State>
     ↳ androidx.lifecycle.Lifecycle.State


Lifecycle states. You can consider the states as the nodes in a graph and Lifecycle.Events as the edges between these nodes.

Summary

Enum values

Lifecycle.State  CREATED

Created state for a LifecycleOwner. 

Lifecycle.State  DESTROYED

Destroyed state for a LifecycleOwner. 

Lifecycle.State  INITIALIZED

Initialized state for a LifecycleOwner. 

Lifecycle.State  RESUMED

Resumed state for a LifecycleOwner. 

Lifecycle.State  STARTED

Started state for a LifecycleOwner. 

Public methods

boolean isAtLeast(Lifecycle.State state)

Compares if this State is greater or equal to the given state.

static Lifecycle.State valueOf(String name)
static final State[] values()

Inherited methods