added in version 2.0.0
belongs to Maven artifact androidx.lifecycle:lifecycle-common:2.0.0-beta01

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

added in version 2.0.0
public static final Lifecycle.Event ON_ANY

An Event constant that can be used to match all events.

ON_CREATE

added in version 2.0.0
public static final Lifecycle.Event ON_CREATE

Constant for onCreate event of the LifecycleOwner.

ON_DESTROY

added in version 2.0.0
public static final Lifecycle.Event ON_DESTROY

Constant for onDestroy event of the LifecycleOwner.

ON_PAUSE

added in version 2.0.0
public static final Lifecycle.Event ON_PAUSE

Constant for onPause event of the LifecycleOwner.

ON_RESUME

added in version 2.0.0
public static final Lifecycle.Event ON_RESUME

Constant for onResume event of the LifecycleOwner.

ON_START

added in version 2.0.0
public static final Lifecycle.Event ON_START

Constant for onStart event of the LifecycleOwner.

ON_STOP

added in version 2.0.0
public static final Lifecycle.Event ON_STOP

Constant for onStop event of the LifecycleOwner.

Public methods

valueOf

added in version 2.0.0
public static Lifecycle.Event valueOf (String name)

Parameters
name String

Returns
Lifecycle.Event

values

added in version 2.0.0
public static final Event[] values ()

Returns
Event[]