fun <E : RealmModel> E.removeChangeListener(listener: RealmChangeListener<E>): Unit
fun <E : RealmModel> E.removeChangeListener(listener: RealmObjectChangeListener<E>): Unit
Removes a previously registered listener on the given RealmObject.
listener
- the instance to be removed.
IllegalArgumentException
- if the object
or the change listener is null
.
IllegalArgumentException
- if object is an unmanaged RealmObject.
IllegalStateException
- if you try to remove a listener from a non-Looper Thread.