T- The live object being returned (
DynamicRealmObjector your model implementing
public interface RealmChangeListener<T>
RealmObjectto receive a notification about updates.
When registered against a
Realm you'll get notified when a Realm instance has been updated.
Register against a
RealmObject to only get notified about changes to them.
Realm instances on a thread without an
Looper cannot register a RealmChangeListener.
RealmResults will automatically contain their new values when
onChange(Object) method is called. Normally this means that it isn't necessary to query again for those
objects, but just invalidate any UI elements that are using them. If there is a chance that a object has been been
deleted, it can be verified by using
void onChange(T element)