I know that the MutableLiveData
extends LiveData
,
but what is the difference between them (in usage). What are appropriate use cases, means when to use the correct one from the two?
LiveData
is immutable while MutableLiveData
is mutable. MutableLiveData
extends LiveData
and provides methods like setValue()
and postValue()
.