Package-level declarations
Contains tools to ease the usage and integration of Android's Lifecycle aware components.
Types
LifecycleAwareListeners is a container for listeners with Android Lifecycle awareness.
Provides access to a list of listeners with active Android Lifecycle owners from LifecycleAwareListeners.
An owner of a sub-lifecycle of the given parentLifecycleOwner. The state of the sub-lifecycle is always in a state that is at most the parentLifecycleOwner's state. It can be a lower state either due to being limited with stateLimit or if the sub-lifecycle is destroyed.
Functions
A convenience function that calls onDestroy when the LifecycleOwner is destroyed.
Updates the LifecycleRegistry's state according to the event. This can be used instead of the default LifecycleRegistry.handleLifecycleEvent to update each LifecycleObserver for every step in the state change.
Updates the LifecycleRegistry's state to the given state. This can be used instead of the default LifecycleRegistry.setCurrentState to update each LifecycleObserver for every step in the state change. See handleLifecycleEventInSteps for an explanation why updating the state without steps can be problematic.