collectWithLifecycle
Collects and returns values from TickingValueProvider in a lifecycle-aware manner.
Parameters
LifecycleOwner whose lifecycle is used to restart collecting values from this TickingValueProvider
Lifecycle.State in which the upstream TickingValueProvider gets collected. The collection will stop if the lifecycle falls below that state, and will restart if it's in that state again.
the Clock to use for localization. By default, it collects SYSTEM_CLOCK, so any clock change is immediately reflected
the TimeZone to use for localization. By default, it collects SYSTEM_TIMEZONE, so any timezone change is immediately reflected
the maximum amount of to wait for a recomputation (as long as this underlying provider returns a non-null TickingValue.nextTick). If null (the default), no max tick bound is applied.