androidx.lifecycle

Annotations

OnLifecycleEvent  

Interfaces

DefaultLifecycleObserver Callback interface for listening to LifecycleOwner state changes. 
LifecycleObserver Marks a class as a LifecycleObserver. 
LifecycleOwner A class that has an Android lifecycle. 
LifecycleRegistryOwner This interface is deprecated. Use android.support.v7.app.AppCompatActivity which extends LifecycleOwner, so there are no use cases for this class.  
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. 
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 observe 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 Transformation methods for LiveData
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.AndroidViewModelFactory ViewModelProvider.Factory which may create AndroidViewModel and ViewModel, which have an empty constructor. 
ViewModelProvider.NewInstanceFactory Simple factory, which calls empty constructor on the give class. 
ViewModelProviders Utilities methods for ViewModelStore class. 
ViewModelProviders.DefaultFactory This class is deprecated. Use ViewModelProvider.AndroidViewModelFactory  
ViewModelStore Class to store ViewModels
ViewModelStores This class is deprecated. Use ComponentActivity.getViewModelStore() or Fragment.getViewModelStore() to retrieve a ViewModelStore directly from activities and fragments.  

Enums

Lifecycle.Event  
Lifecycle.State Lifecycle states.