Package io.realm
Interface MapChangeListener<K,V>
-
- Type Parameters:
K- the type of the keys stored in the mapV- the type of the values stored in the map
public interface MapChangeListener<K,V>MapChangeListenercan be registered with aRealmMapto receive a notification with aMapChangeSetto describe the details of what have been changed in the map since last time.Realm instances on a thread without an
Loopercannot register aMapChangeListener.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonChange(RealmMap<K,V> map, MapChangeSet<K> changes)This will be called when the async query is finished the first time or the collection of objects has changed.
-
-
-
Method Detail
-
onChange
void onChange(RealmMap<K,V> map, MapChangeSet<K> changes)
This will be called when the async query is finished the first time or the collection of objects has changed.- Parameters:
map- the map this listener is registered to.changes- object with information about the change.
-
-