There are two ways that make change value of MutableLiveData. But what is difference between setValue() & postVa
MutableLiveData
setValue()
postVa
setValue() method must be called from the main thread. If you need set a value from a background thread, you can use postValue().
postValue()
More here .