ReadOnlyPropertyDefaultObservable
A BaseDefaultObservable that matches its value to a ReadOnlyProperty. When the ReadOnlyProperty updates, changes to the property are not immediately delegated back to the observable. Use a Flow based observable if synchronized values are required
Parameters
the type of value to expect.
the type of result to expect. Must be a subclass of T
The default R to return if the value of the ReadOnlyProperty is null
.
The ReadOnlyProperty to track.
The ObservationInitialized to handle observation.
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