Package-level declarations
Types
Link copied to clipboard
class LifecycleKey<T : Any>(val type: KClass<T>) : ServiceKey<T, LifecycleKey.Entry<T>, LifecycleOwner, LifecycleKey.PutParams<T>>
A ServiceKey that ties the lifetime of a service instance to one or more AndroidX LifecycleOwners.
Functions
Link copied to clipboard
Creates a LifecycleKey for the reified type T.
Link copied to clipboard
fun <T : Any> ServiceLocator.put(key: LifecycleKey<T>, minimumState: Lifecycle.State = Lifecycle.State.STARTED, threadSafetyMode: LazyThreadSafetyMode = defaultLazyKeyThreadSafetyMode, provider: () -> T)
Registers a lifecycle-aware service provider for the given key.