Package-level declarations
Types
An Observer for SingleEvents, simplifying the pattern of checking if the SingleEvent's content has already been handled.
A lifecycle-aware observable that sends only new updates after subscription, used for events like navigation and Snackbar messages.
Properties
Functions
Creates an instance of MutableLiveData with this
as its value.
Creates an empty LiveData.
Creates a LiveData that emits the initialValue immediately.
Creates a LiveData that emits the value that the callable
function produces, immediately.
Emits only the values that are not null
Notifies the observer with the same live data as it holds
Shorthand function that will observe the liveData using this
as the LifecycleOwner. It uses EventObserver to observe the emitted values.
Converts a LiveData to a MutableLiveData with the initial value set by this LiveData's value
Converts a LiveData to a SingleLiveData (exactly similar to LiveData.first()