public interface FlowFactory
Flows for Realm classes.| Modifier and Type | Method and Description |
|---|---|
<any> |
changesetFrom(DynamicRealm dynamicRealm,
DynamicRealmObject dynamicRealmObject)
Creates a
Flow for a DynamicRealmObject. |
<T> <any> |
changesetFrom(DynamicRealm dynamicRealm,
RealmList<T> list)
Creates a
Flow for a RealmList. |
<T> <any> |
changesetFrom(DynamicRealm dynamicRealm,
RealmResults<T> results)
Creates a
Flow for a RealmResults instance. |
<T> <any> |
changesetFrom(Realm realm,
RealmList<T> list)
Creates a
Flow for a RealmList. |
<T> <any> |
changesetFrom(Realm realm,
RealmResults<T> results)
Creates a
Flow for a RealmResults instance. |
<T extends RealmModel> |
changesetFrom(Realm realm,
T realmObject)
Creates a
Flow for a RealmObject. |
<any> |
from(DynamicRealm dynamicRealm)
Creates a
Flow for a DynamicRealm. |
<any> |
from(DynamicRealm dynamicRealm,
DynamicRealmObject dynamicRealmObject)
Creates a
Flow for a DynamicRealmObject. |
<T> <any> |
from(DynamicRealm dynamicRealm,
RealmList<T> realmList)
Creates a
Flow for a RealmList. |
<T> <any> |
from(DynamicRealm dynamicRealm,
RealmResults<T> results)
Creates a
Flow for a RealmResults. |
<any> |
from(Realm realm)
Creates a
Flow for a Realm. |
<T> <any> |
from(Realm realm,
RealmList<T> realmList)
Creates a
Flow for a RealmList. |
<T> <any> |
from(Realm realm,
RealmResults<T> results)
Creates a
Flow for a RealmResults. |
<T extends RealmModel> |
from(Realm realm,
T realmObject)
Creates a
Flow for a RealmObject. |
<any> from(Realm realm)
Flow for a Realm. It should emit the initial state of the Realm when subscribed to and
on each subsequent update of the Realm.realm - Realm instance being observed for changes to be emitted by the flow.<any> from(DynamicRealm dynamicRealm)
Flow for a DynamicRealm. It should emit the initial state of the Realm when subscribed to and
on each subsequent update of the Realm.dynamicRealm - DynamicRealm instance being observed for changes to be emitted by the flow.<T> <any> from(Realm realm, RealmResults<T> results)
Flow for a RealmResults. It should emit the initial RealmResult when subscribed to and
on each subsequent update of the RealmResults.T - type of RealmObject.results - RealmResults instance being observed for changes to be emitted by the flow.realm - Realm instance from where the results are coming.Flow that emits all updates to the RealmObject.<T> <any> changesetFrom(Realm realm, RealmResults<T> results)
Flow for a RealmResults instance. It should emit the initial results when subscribed to and on each
subsequent update of the results it should emit the results plus the CollectionChange that describes
the update.
Changeset observables do not support backpressure as a changeset depends on the state of the previous changeset. Handling backpressure should therefore be left to the user.
realm - Realm instance from where the object is coming.results - RealmResults instance being observed for changes to be emitted by the flow.Flow that emits all updates to the RealmResults.<T> <any> from(DynamicRealm dynamicRealm, RealmResults<T> results)
Flow for a RealmResults. It should emit the initial RealmResult when subscribed to and
on each subsequent update of the RealmResults.T - type of RealmObject.results - RealmResults instance being observed for changes to be emitted by the flow.dynamicRealm - DynamicRealm instance from where the results are coming.Flow that emits all updates to the RealmObject.<T> <any> changesetFrom(DynamicRealm dynamicRealm, RealmResults<T> results)
Flow for a RealmResults instance. It should emit the initial results when subscribed to and on each
subsequent update of the results it should emit the results plus the CollectionChange that describes
the update.
Changeset observables do not support backpressure as a changeset depends on the state of the previous changeset. Handling backpressure should therefore be left to the user.
dynamicRealm - DynamicRealm instance from where the object is coming.results - RealmResults instance being observed for changes to be emitted by the flow.Flow that emits all updates to the RealmResults.<T> <any> from(Realm realm, RealmList<T> realmList)
Flow for a RealmList. It should emit the initial RealmResult when subscribed to and
on each subsequent update of the RealmList.
Note: RealmChangeListener is currently not supported on RealmLists.
<T> <any> changesetFrom(Realm realm, RealmList<T> list)
Flow for a RealmList. It should emit the initial list when subscribed to and on each
subsequent update of the list it should emit the list plus the CollectionChange that describes
the update.
Changeset observables do not support backpressure as a changeset depends on the state of the previous changeset. Handling backpressure should therefore be left to the user.
<T> <any> from(DynamicRealm dynamicRealm, RealmList<T> realmList)
Flow for a RealmList. It should emit the initial RealmResult when subscribed to and
on each subsequent update of the RealmList.
Note: RealmChangeListener is currently not supported on RealmLists.
T - type of RealmObjectrealmList - RealmList instance being observed for changes to be emitted by the flow.dynamicRealm - DynamicRealm instance from where the results are coming.Flow that emit all updates to the RealmList.<T> <any> changesetFrom(DynamicRealm dynamicRealm, RealmList<T> list)
Flow for a RealmList. It should emit the initial list when subscribed to and on each
subsequent update of the list it should emit the list plus the CollectionChange that describes
the update.
Changeset observables do not support backpressure as a changeset depends on the state of the previous changeset. Handling backpressure should therefore be left to the user.
dynamicRealm - DynamicRealm instance from where the object is coming.list - RealmList instance being observed for changes to be emitted by the flow.Flow that emits all updates to the RealmList.<T extends RealmModel> <any> from(Realm realm, T realmObject)
Flow for a RealmObject. It should emit the initial object when subscribed to and on each
subsequent update of the object.T - type of query targetrealmObject - RealmObject instance being observed for changes to be emitted by the flow.realm - Realm instance from where the object is coming.Flow that emits all updates to the DynamicRealmObject.<T extends RealmModel> <any> changesetFrom(Realm realm, T realmObject)
Flow for a RealmObject. It should emit the initial object when subscribed to and on each
subsequent update of the object it should emit the object plus the ObjectChangeSet that describes
the update.
Changeset observables do not support backpressure as a changeset depends on the state of the previous changeset. Handling backpressure should therefore be left to the user.
realm - Realm instance from where the object is coming.realmObject - RealmObject instance being observed for changes to be emitted by the flow.Flow that emits all updates to the DynamicRealmObject.<any> from(DynamicRealm dynamicRealm, DynamicRealmObject dynamicRealmObject)
Flow for a DynamicRealmObject. It should emit the initial object when subscribed to and
on each subsequent update of the object.dynamicRealm - DynamicRealm instance from where the object is coming.dynamicRealmObject - DynamicRealmObject instance being observed for changes to be emitted by the flow.Flow that emits all updates to the DynamicRealmObject.<any> changesetFrom(DynamicRealm dynamicRealm, DynamicRealmObject dynamicRealmObject)
Flow for a DynamicRealmObject. It should emit the initial object when subscribed to and on each
subsequent update of the object it should emit the object plus the ObjectChangeSet that describes
the update.
Changeset observables do not support backpressure as a changeset depends on the state of the previous changeset. Handling backpressure should therefore be left to the user.
dynamicRealm - DynamicRealm instance from where the object is coming.dynamicRealmObject - DynamicRealmObject instance being observed for changes to be emitted by the flow.Flow that emits all updates to the DynamicRealmObject.