StateFlowInitializedSubject
A BaseInitializedSubject that matches the state of a MutableStateFlow.
Parameters
the type of value to expect.
The MutableStateFlow to match the state of.
If true
this will automatically call bind.
The ObservationInitialized to handle value being observed
Constructors
Properties
The CoroutineContext in which to observe the MutableStateFlow
The CoroutineScope on which to observe the MutableStateFlow
The current value T or null
being observed
The initial ObservableOptional value of T.
The Observer that observes the observable value.
A ReadOnlyProperty of T
Functions
Bind changes in value to a CoroutineScope in a CoroutineContext
Convenience method for BasicSubject that calls BasicSubject.bind using the CoroutineContext of the provided CoroutineScope
Creates an observation that calls onNext each time a new value is observed until the resulting Disposable is disposed
Observes WithState of a nullable value on the lifecycle of a LifecycleOwner
Observes WithState on the lifecycle of a LifecycleOwner
Observes WithState on the lifecycle of a LifecycleOwner by transforming the observed value.
Converts a ReadOnlyProperty into a ReadOnlyPropertyDefaultObservable
Converts a ReadOnlyProperty into a ReadOnlyPropertyInitializedObservable