public interface OrderedRealmCollectionChangeListener<T>
OrderedRealmCollectionChangeListener
can be registered with a RealmResults
to receive a notification
with a OrderedCollectionChangeSet
to describe the details of what have been changed in the collection from
last time.
Realm instances on a thread without an Looper
cannot register a
OrderedRealmCollectionChangeListener
.
Modifier and Type | Method and Description |
---|---|
void |
onChange(T t,
OrderedCollectionChangeSet changeSet)
This will be called when the async query is finished the first time or the collection of objects has changed.
|
void onChange(T t, OrderedCollectionChangeSet changeSet)
t
- the collection this listener is registered to.changeSet
- object with information about which rows in the collection were added, removed or modified.
null
is returned the first time an async query is completed.