LiveDataEvent
Extension of the MutableLiveData acting as single-shot observable event. Once a new data value is set, then the attached observer is notified only once. Note that only one observer is going to be notified of changes.
Important: This is a Public Preview API. It may be changed or removed at any time.
Constructors
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun observe(owner: LifecycleOwner, observer: Observer<in T>)
Content copied to clipboard
Sets a new observer.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Sets the value. If there are active observers, the value will be dispatched to them.