Skip to content

Most visited

Recently visited

navigation

android.arch.lifecycle

Annotations

OnLifecycleEvent  

Interfaces

LifecycleObserver Marks a class as a LifecycleObserver. 
LifecycleOwner A class that has an Android lifecycle. 
LifecycleRegistryOwner Specialization of LifecycleOwner that explicitly returns LifecycleRegistry
Observer<T> A simple callback that can receive from LiveData
ViewModelProvider.Factory Implementations of Factory interface are responsible to instantiate ViewModels. 
ViewModelStoreOwner A scope that owns ViewModelStore

Classes

AndroidViewModel Application context aware ViewModel
Lifecycle Defines an object that has an Android Lifecycle. 
LifecycleActivity Activity that implements LifecycleOwner
LifecycleFragment A fragment that is also a LifecycleOwner
LifecycleRegistry An implementation of Lifecycle that can handle multiple observers. 
LifecycleService A Service that is also a LifecycleOwner
LiveData<T> LiveData is a data holder class that can be observed within a given lifecycle. 
LiveDataReactiveStreams Adapts LiveData input and output to the ReactiveStreams spec. 
MediatorLiveData<T> LiveData subclass which may observer other LiveData objects and react on OnChanged events from them. 
MutableLiveData<T> LiveData which publicly exposes setValue(T) and postValue(T) method. 
ProcessLifecycleOwner Class that provides lifecycle for the whole application process. 
ServiceLifecycleDispatcher Helper class to dispatch lifecycle events for a service. 
Transformations Transformations for a LiveData class. 
ViewModel ViewModel is a class that is responsible for preparing and managing the data for an Activity or a Fragment
ViewModelProvider An utility class that provides ViewModels for a scope. 
ViewModelProvider.NewInstanceFactory Simple factory, which calls empty constructor on the give class. 
ViewModelProviders Utilities methods for ViewModelStore class. 
ViewModelProviders.DefaultFactory ViewModelProvider.Factory which may create AndroidViewModel and ViewModel, which have an empty constructor. 
ViewModelStore Class to store ViewModels
ViewModelStores Factory methods for ViewModelStore class. 

Enums

Lifecycle.Event  
Lifecycle.State Lifecycle states. 
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!

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 one-minute survey?
Help us improve Android tools and documentation.