Package icyllis.modernui.lifecycle
package icyllis.modernui.lifecycle
-
ClassDescriptionDefines an object that has a Lifecycle.Lifecycle states.Callback interface for listening to
LifecycleOwnerstate changes.A class that has an Android lifecycle.An implementation ofLifecyclethat can handle multiple observers.LiveData<T>LiveData is a data holder class that can be observed within a given lifecycle.LiveDatawhich publicly exposesMutableLiveData.setValue(T)andMutableLiveData.postValue(T)method.Observer<T>A simple callback that can receive fromLiveData.SafeLinkedHashMap<T,E extends Supplier<T>> LinkedHashMap, which supports modifications during iterations.SafeLinkedList<T,E extends Supplier<T>> LinkedList, which pretends to be a map and supports modifications during iterations.Transformation methods forLiveData.ViewModel is a class that is responsible for preparing and managing the data for aFragment.A utility class that providesViewModelsfor a scope.Implementations ofFactoryinterface are responsible to instantiate ViewModels.Simple factory, which calls empty constructor on the give class.Class to storeViewModels.A scope that ownsViewModelStore.Accessors for finding a view tree-localLifecycleOwnerthat reports the lifecycle for the given view.Accessors for finding a view tree-localViewModelStoreOwnerthat allows access to aViewModelStorefor the given view.