# Package icyllis.modernui.lifecycle

package icyllis.modernui.lifecycle

- Related Packages
  Package
  Description
  icyllis.modernui
- Class
  Description
  Lifecycle
  Defines an object that has a Lifecycle.
  Lifecycle.Event
  Lifecycle.State
  Lifecycle states.
  LifecycleObserver
  Callback interface for listening to `LifecycleOwner` state changes.
  LifecycleOwner
  A class that has an Android lifecycle.
  LifecycleRegistry
  An implementation of `Lifecycle` that can handle multiple observers.
  LiveData<T>
  LiveData is a data holder class that can be observed within a given lifecycle.
  MediatorLiveData<T>
  `LiveData` subclass which may observe other `LiveData` objects and react on `OnChanged` events from them.
  MutableLiveData<T>
  `LiveData` which publicly exposes `MutableLiveData.setValue(T)` and `MutableLiveData.postValue(T)` method.
  Observer<T>
  A simple callback that can receive from `LiveData`.
  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.
  Transformations
  Transformation methods for `LiveData`.
  ViewModel
  ViewModel is a class that is responsible for preparing and managing the data for a `Fragment`.
  ViewModelProvider
  A utility class that provides `ViewModels` for a scope.
  ViewModelProvider.Factory
  Implementations of `Factory` interface are responsible to instantiate ViewModels.
  ViewModelProvider.NewInstanceFactory
  Simple factory, which calls empty constructor on the give class.
  ViewModelStore
  Class to store `ViewModels`.
  ViewModelStoreOwner
  A scope that owns `ViewModelStore`.
  ViewTreeLifecycleOwner
  Accessors for finding a view tree-local `LifecycleOwner` that reports the lifecycle for the given view.
  ViewTreeViewModelStoreOwner
  Accessors for finding a view tree-local `ViewModelStoreOwner` that allows access to a `ViewModelStore` for the given view.