ObservationDefault
An Observation that implements MutableDefaultInitialized
Parameters
the type of value to expect.
the type of result to expect. Must be a subclass of T.
The default ObservableOptional.Value to return if the current value is ObservableOptional.Nothing or ObservableOptional.Value containing null
.
The initial ObservableOptional.Value this observation should contain.
Properties
Transformation to apply to the latest value when observedValue is called.
The currently observed OO
The current value T or null
being observed
The ObservableOptional or T that is currently being observed.
Action to execute when this observable is observed for the first time.
A ReadOnlyProperty of T
Functions
Adds an observing function to the Observable to be notified on each change to the observable. If there is a current value, there will be an immediate notification
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.
set the value of this Observable from a suspended context.
Converts a ReadOnlyProperty into a ReadOnlyPropertyDefaultObservable
Converts a ReadWriteProperty to a ReadWritePropertyDefaultSubject
Converts a ReadOnlyProperty into a ReadOnlyPropertyInitializedObservable
Converts a ReadWriteProperty to a ReadWritePropertyInitializedSubject