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 Event constant that can be used to match all events. 

Lifecycle.Event  ON_CREATE

Constant for onCreate event of the LifecycleOwner

Lifecycle.Event  ON_DESTROY

Constant for onDestroy event of the LifecycleOwner

Lifecycle.Event  ON_PAUSE

Constant for onPause event of the LifecycleOwner

Lifecycle.Event  ON_RESUME

Constant for onResume event of the LifecycleOwner

Lifecycle.Event  ON_START

Constant for onStart event of the LifecycleOwner

Lifecycle.Event  ON_STOP

Constant for onStop event of the LifecycleOwner

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

values

public static final Event[] values ()

Returns
Event[]