minusAssign

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

Removes a single instance of the specified element from a MutableLiveData, if it is present. The observers are notified of the new value if any of the specified elements was removed.


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

Removes all elements from this MutableLiveData that are also contained in the given elements collection. The observers are notified of the new value if the list was changed.


operator fun <K, V> MutableLiveData<Map<K, V>>.minusAssign(key: K)

Removes the entry mapped by key from the LiveData's value, notifying observers of the new value.