PutParams
constructor(minimumState: Lifecycle.State = Lifecycle.State.STARTED, threadSafetyMode: LazyThreadSafetyMode, provider: () -> T)
Parameters
minimumState
The minimum Lifecycle.State that a LifecycleOwner must be in for the service instance to be retained. Defaults to Lifecycle.State.STARTED.
threadSafetyMode
The LazyThreadSafetyMode for the service's lazy initialization.
provider
A lambda that creates the service instance.