Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.

Lifecycle.Event

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

java.lang.Object
   ↳ java.lang.Enum<android.arch.lifecycle.Lifecycle.Event>
     ↳ android.arch.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

Lifecycle.Event ON_ANY

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

ON_CREATE

Lifecycle.Event ON_CREATE

Constant for onCreate event of the LifecycleOwner.

ON_DESTROY

Lifecycle.Event ON_DESTROY

Constant for onDestroy event of the LifecycleOwner.

ON_PAUSE

Lifecycle.Event ON_PAUSE

Constant for onPause event of the LifecycleOwner.

ON_RESUME

Lifecycle.Event ON_RESUME

Constant for onResume event of the LifecycleOwner.

ON_START

Lifecycle.Event ON_START

Constant for onStart event of the LifecycleOwner.

ON_STOP

Lifecycle.Event ON_STOP

Constant for onStop event of the LifecycleOwner.

Public methods

valueOf

Lifecycle.Event valueOf (String name)

Parameters
name String

Returns
Lifecycle.Event

values

Event[] values ()

Returns
Event[]