Package icyllis.modernui.lifecycle
package icyllis.modernui.lifecycle
-
ClassDescriptionDefines an object that has a Lifecycle.Lifecycle states.Callback interface for listening to
LifecycleOwner
state changes.A class that has an Android lifecycle.An implementation ofLifecycle
that can handle multiple observers.LiveData<T>LiveData is a data holder class that can be observed within a given lifecycle.LiveData
which 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 providesViewModels
for a scope.Implementations ofFactory
interface 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-localLifecycleOwner
that reports the lifecycle for the given view.Accessors for finding a view tree-localViewModelStoreOwner
that allows access to aViewModelStore
for the given view.