plusAssign

operator fun <E> MutableLiveData<List<E>>.plusAssign(element: E)

Adds the specified element to the end of this MutableLiveData. The observers are notified of the new value.


operator fun <E> MutableLiveData<List<E>>.plusAssign(elements: Iterable<E>)

Adds all of the elements of the specified collection to the end of this MutableLiveData. The observers are notified of the new value if the list was changed.


operator fun <K, V> MutableLiveData<Map<K, V>>.plusAssign(map: Map<K, V>)

Appends all entries from the given map in a LiveData, notifying observers of the new value. Creates a map if the LiveData has no value yet.