Entry

The ServiceEntry for a LifecycleKey.

This entry tracks the set of active LifecycleOwners that have requested the service. It observes their lifecycles and clears the stored service instance when all owners become inactive.

Constructors

Link copied to clipboard
constructor(params: LifecycleKey.PutParams<T>)

Functions

Link copied to clipboard
fun getValue(scope: LifecycleOwner): T