Skip to content

Most visited

Recently visited

navigation
added in version 1.0.0
belongs to Maven artifact android.arch.lifecycle:common:1.0.3

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

From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum values

ON_ANY

added in version 1.0.0
Lifecycle.Event ON_ANY

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

ON_CREATE

added in version 1.0.0
Lifecycle.Event ON_CREATE

Constant for onCreate event of the LifecycleOwner.

ON_DESTROY

added in version 1.0.0
Lifecycle.Event ON_DESTROY

Constant for onDestroy event of the LifecycleOwner.

ON_PAUSE

added in version 1.0.0
Lifecycle.Event ON_PAUSE

Constant for onPause event of the LifecycleOwner.

ON_RESUME

added in version 1.0.0
Lifecycle.Event ON_RESUME

Constant for onResume event of the LifecycleOwner.

ON_START

added in version 1.0.0
Lifecycle.Event ON_START

Constant for onStart event of the LifecycleOwner.

ON_STOP

added in version 1.0.0
Lifecycle.Event ON_STOP

Constant for onStop event of the LifecycleOwner.

Public methods

valueOf

added in version 1.0.0
Lifecycle.Event valueOf (String name)

Parameters
name String

Returns
Lifecycle.Event

values

added in version 1.0.0
Event[] values ()

Returns
Event[]

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (Dec 2017 Android Platform & Tools Survey)