kotlin-extensions / io.realm.kotlin / removeChangeListener

removeChangeListener

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.

Parameters

listener - the instance to be removed.

Exceptions

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.