K - the type of the keys stored in the mapV - the type of the values stored in the mappublic interface MapChangeListener<K,V>
MapChangeListener can be registered with a RealmMap to receive a notification
with a MapChangeSet to describe the details of what have been changed in the map since
last time.
Realm instances on a thread without an Looper cannot register a
MapChangeListener.
| Modifier and Type | Method and Description |
|---|---|
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.
|
void onChange(RealmMap<K,V> map, MapChangeSet<K> changes)
map - the map this listener is registered to.changes - object with information about the change.