LiveData in Android
Introduction - LiveData is a part of Android Jetpack. LiveData is simply a data holder but it is observable. It observes if there is a change in data. LiveData is lifecycle-aware , if there is a change then LiveData will update the corresponding application components such as activities, fragments or services, which are active. If the application components are not active, then LiveData will send the updated data in future. So you don't have to worry about the lifecycle of the application components. There are two types of LiveData Mutable LiveData (Object of MutableLiveData) - We can change the live data. Immutable LiveData (Object of LiveData) - We cannot change the live data. Application - It can be used for Room Persistent Library , Coroutines etc. Once a data is changed, the corresponding application components will be notified automatically. If the corresponding application components is not active, then it will be notified in the future with the latest data. We don't...