Package-level declarations

Contains tools to ease the usage and integration of Android's Lifecycle aware components.

Types

Link copied to clipboard
abstract class LifecycleAwareListeners<T>

LifecycleAwareListeners is a container for listeners with Android Lifecycle awareness.

Link copied to clipboard

Provides access to a list of listeners with active Android Lifecycle owners from LifecycleAwareListeners.

Functions

Link copied to clipboard

A convenience function that calls onDestroy when the Lifecycle is destroyed.

A convenience function that calls onDestroy when the LifecycleOwner is destroyed.

Link copied to clipboard
@IviExperimental(reasons = [])
inline fun <R> useScopedLifecycleOwner(block: (LifecycleOwner) -> R): R

Creates a LifecycleOwner and provides this to block. The LifecycleOwner is destroyed after block returns. Returns the value returned by block.