DefaultFlowObservable
A BaseDefaultObservable that observes the state of a Flow.
Parameters
the type of value to expect.
the type of result to expect. Must be a subclass of T
The default value of R to observe if the Flow emits null
.
The initial value of T
The CoroutineScope on which to observe the Flow
The CoroutineContext in which to observe the Flow
The Flow to observe
The ObservationUninitialized to observe the Flow
Constructors
Properties
The current value T or null
being observed
The default Value of R. Can be used in case Nothing is Initial.initialValue
The initial ObservableOptional value of T.
A ReadOnlyProperty of T
Functions
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