androidx.lifecycle

Annotations

OnLifecycleEvent This @interface is deprecated. This annotation required the usage of code generation or reflection, which should be avoided. Use DefaultLifecycleObserver or LifecycleEventObserver instead.  

Interfaces

DefaultLifecycleObserver Callback interface for listening to LifecycleOwner state changes. 
HasDefaultViewModelProviderFactory Interface that marks a ViewModelStoreOwner as having a default ViewModelProvider.Factory for use with ViewModelProvider.ViewModelProvider(ViewModelStoreOwner)
LifecycleEventObserver Class that can receive any lifecycle change and dispatch it to the receiver. 
LifecycleObserver Marks a class as a LifecycleObserver. 
LifecycleOwner A class that has an Android lifecycle. 
LifecycleRegistryOwner This interface is deprecated. Use androidx.appcompat.app.AppCompatActivity which extends LifecycleOwner, so there are no use cases for this class.  
Observer<T> A simple callback that can receive from LiveData
ViewModelStoreOwner A scope that owns ViewModelStore

Classes

AbstractSavedStateViewModelFactory Skeleton of androidx.lifecycle.ViewModelProvider.KeyedFactory that creates SavedStateHandle for every requested ViewModel
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 the