LiveData is one of the first architectural components. It is a simple lifecycle-aware observable data holder.
Dependency: implementation “androidx.lifecycle:lifecycle-livedata:$lifecycle_version”
As we already know, activities or fragments have their own lifecycles and LiveData is bound to them. And it acts as a data holder for us. Let’s start with observable: