Lifecycle.Event
public
static
final
enum
Lifecycle.Event
extends Enum<Lifecycle.Event>
java.lang.Object | ||
↳ | java.lang.Enum<androidx.lifecycle.Lifecycle.Event> | |
↳ | androidx.lifecycle.Lifecycle.Event |
Summary
Enum values | |
---|---|
Lifecycle.Event |
ON_ANY
An |
Lifecycle.Event |
ON_CREATE
Constant for onCreate event of the |
Lifecycle.Event |
ON_DESTROY
Constant for onDestroy event of the |
Lifecycle.Event |
ON_PAUSE
Constant for onPause event of the |
Lifecycle.Event |
ON_RESUME
Constant for onResume event of the |
Lifecycle.Event |
ON_START
Constant for onStart event of the |
Lifecycle.Event |
ON_STOP
Constant for onStop event of the |
Public methods | |
---|---|
static
Lifecycle.Event
|
valueOf(String name)
|
static
final
Event[]
|
values()
|
Inherited methods | |
---|---|
Enum values
ON_ANY
public static final Lifecycle.Event ON_ANY
An Event
constant that can be used to match all events.
ON_CREATE
public static final Lifecycle.Event ON_CREATE
Constant for onCreate event of the LifecycleOwner
.
ON_DESTROY
public static final Lifecycle.Event ON_DESTROY
Constant for onDestroy event of the LifecycleOwner
.
ON_PAUSE
public static final Lifecycle.Event ON_PAUSE
Constant for onPause event of the LifecycleOwner
.
ON_RESUME
public static final Lifecycle.Event ON_RESUME
Constant for onResume event of the LifecycleOwner
.
ON_START
public static final Lifecycle.Event ON_START
Constant for onStart event of the LifecycleOwner
.
ON_STOP
public static final Lifecycle.Event ON_STOP
Constant for onStop event of the LifecycleOwner
.
Public methods
valueOf
public static Lifecycle.Event valueOf (String name)
Parameters | |
---|---|
name |
String |
Returns | |
---|---|
Lifecycle.Event |
Annotations
Interfaces
Classes
- AndroidViewModel
- Lifecycle
- LifecycleRegistry
- LifecycleService
- LiveData
- LiveDataReactiveStreams
- MediatorLiveData
- MutableLiveData
- ProcessLifecycleOwner
- ServiceLifecycleDispatcher
- Transformations
- ViewModel
- ViewModelProvider
- ViewModelProvider.AndroidViewModelFactory
- ViewModelProvider.NewInstanceFactory
- ViewModelProviders
- ViewModelProviders.DefaultFactory
- ViewModelStore
- ViewModelStores
Enums