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>
MapChangeListener
can be registered with aRealmMap
to receive a notification with aMapChangeSet
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 aMapChangeListener
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
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.
-
-