livedata
LiveData is an observable data holder class from Android Jetpack that is designed to hold a value and propagate changes to its observers. It is commonly used within the MVVM architecture to expose data from a ViewModel to the UI.
A defining feature of LiveData is its lifecycle awareness. Observers must be bound to a LifecycleOwner, such
In typical usage, a ViewModel holds a private MutableLiveData<T> and exposes a public LiveData<T>. UI components
LiveData supports transformations and composition. Transformations.map and Transformations.switchMap provide derived data streams, and MediatorLiveData can observe
Limitations include that LiveData does not fetch data by itself and is not a persistence mechanism. It