Join us at MongoDB.local London on 7 May to unlock new possibilities for your data. Use WEB50 to save 50%.
Register now >
Docs Menu
Docs Home
/ /
io.realm.rx

Interfaz RxObservableFactory

Interfaz de fábrica para crear RX observables para clases en Realm.

Modificador y Tipo
Método y descripción

public <any>

Creates an Observable for a RealmObject .

public <any>

Realm realm,
E object
)

Creates an Observable for a RealmObject .

public <any>

Creates an Observable for a RealmList .

public <any>

Creates an Observable for a RealmList .

public <any>

Creates an Observable for a RealmResults .

public <any>

Creates an Observable for a RealmResults .

public <any>

Crea un Single a partir de un RealmQuery .

public <any>

Crea un Single a partir de un RealmQuery .

public <any>

Creates a Flowable for a DynamicRealmObject .

public <any>

from <E >(
Realm realm,
E object
)

Crea un Flowable para un RealmObject .

public <any>

Creates a Flowable for a RealmList .

public <any>

Creates an Observable for a RealmList .

public <any>

Crea un Flowable para RealmResults .

public <any>

from <E >(
)

Crea un Flowable para RealmResults .

public <any>

Creates a Flowable for a DynamicRealm .

public <any>

Realm realm
)

Crea un Flowable para un Realm .

public <any> changesetsFrom (
)

Creates an Observable 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 + the io.realm.ObjectChangeSet that describes the update.

Los observables de conjuntos de cambios no admiten la contrapresión, ya que un conjunto de cambios depende del estado del conjunto de cambios anterior. Por lo tanto, la gestión de la contrapresión debe quedar en manos del usuario.

Parámetros

  • object - RealmObject para escuchar los cambios de.

  • realm - Realm instance object is coming from.

public <any> changesetsFrom <E >(
Realm realm,
E object
)

Creates an Observable 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 + the io.realm.ObjectChangeSet that describes the update.

Los observables de conjuntos de cambios no admiten la contrapresión, ya que un conjunto de cambios depende del estado del conjunto de cambios anterior. Por lo tanto, la gestión de la contrapresión debe quedar en manos del usuario.

Type Parameters

  • E - type of RealmObject

Parámetros

  • object - RealmObject para escuchar los cambios de.

  • realm - Realm instance object is coming from.

public <any> changesetsFrom <E >(
)

Crea un Observable para una RealmList. Debe emitir la RealmList inicial al suscribirse y, en cada actualización posterior, debe emitir la RealmList y el OrderedCollectionChangeSet que describe la actualización.

Changeset observables do not support backpressure as a changeset depends on the state of the previous changeset. Handling backpressure should therefor be left to users.

Parámetros

  • list - RealmList to listen to changes for.

  • realm - La lista de instancias del reino proviene de.

Devuelve

Rx observable that emit all updates + their changeset.

public <any> changesetsFrom <E >(
)

Creates an Observable for a RealmList . It should emit the initial RealmList when subscribed to and on each subsequent update of the RealmIst it should emit the RealmList + the OrderedCollectionChangeSet that describes the update.

Changeset observables do not support backpressure as a changeset depends on the state of the previous changeset. Handling backpressure should therefor be left to users.

Type Parameters

  • E - type of RealmObject

Parámetros

  • list - RealmList to listen to changes for.

  • realm - La lista de instancias del reino proviene de.

Devuelve

Rx observable that emit all updates + their changeset.

public <any> changesetsFrom <E >(
)

Crea un Observable para un RealmResults. Debe emitir el RealmResult inicial al suscribirse y, en cada actualización posterior, debe emitir el RealmResults + el OrderedCollectionChangeSet que describe la actualización.

Changeset observables do not support backpressure as a changeset depends on the state of the previous changeset. Handling backpressure should therefor be left to users.

Parámetros

  • results - RealmResults to listen to changes for.

  • realm - Realm instance results are coming from.

Devuelve

Rx observable that emit all updates + their changeset.

public <any> changesetsFrom <E >(
)

Crea un Observable para un RealmResults. Debe emitir el RealmResult inicial al suscribirse y, en cada actualización posterior, debe emitir el RealmResults + el OrderedCollectionChangeSet que describe la actualización.

Changeset observables do not support backpressure as a changeset depends on the state of the previous changeset. Handling backpressure should therefor be left to users.

Type Parameters

  • E - type of RealmObject

Parámetros

  • results - RealmResults to listen to changes for.

  • realm - Realm instance results are coming from.

Devuelve

Rx observable that emit all updates + their changeset.

public <any> from <E >(
)

Creates a Single from a RealmQuery . It should emit the query and then complete.

Un RealmQuery observable es frío.

Parámetros

  • query - RealmObject para escuchar los cambios de.

  • realm - DynamicRealm instance query is coming from.

public <any> from <E >(
)

Creates a Single from a RealmQuery . It should emit the query and then complete.

Un RealmQuery observable es frío.

Type Parameters

  • E - tipo de objetivo de query

Parámetros

  • query - RealmQuery a emitir.

  • realm - Realm instance query is coming from.

public <any> from (
)

Creates a Flowable for a DynamicRealmObject . It should emit the initial object when subscribed to and on each subsequent update of the object.

DynamicRealmObject observables are hot as DynamicRealmObjects automatically are kept up to date.

Parámetros

  • object - DynamicRealmObject to listen to changes for.

  • realm - DynamicRealm instance object is coming from.

public <any> from <E >(
Realm realm,
E object
)

Crea un Flowable para un RealmObject . Debe emitir el objeto inicial al suscribirse y en cada actualización posterior del objeto.

Los observables de RealmObject están de moda porque los RealmObjects se mantienen actualizados automáticamente.

Type Parameters

  • E - tipo de objetivo de query

Parámetros

  • object - RealmObject para escuchar los cambios de.

  • realm - Realm instance object is coming from.

public <any> from <E >(
)

Creates a Flowable for a RealmList . It should emit the initial list when subscribed to and on each subsequent update of the RealmList.

Los observables de RealmList están de moda porque las RealmLists se mantienen actualizadas automáticamente.

Note: io.realm.RealmChangeListener is currently not supported on RealmLists.

Parámetros

  • list - RealmList para escuchar cambios.

  • realm - DynamicRealm instance list is coming from.

public <any> from <E >(
)

Crea un Observable para un RealmList . Debe emitir la lista inicial cuando se suscriba y en cada actualización posterior del RealmList.

Los observables de RealmList están de moda porque las RealmLists se mantienen actualizadas automáticamente.

Note: io.realm.RealmChangeListener is currently not supported on RealmLists.

Type Parameters

  • E - tipo de objetivo de query

Parámetros

  • list - RealmObject para escuchar los cambios de.

  • realm - La lista de instancias del reino proviene de.

public <any> from <E >(
)

Creates a Flowable for a RealmResults . It should emit the initial RealmResult when subscribed to and on each subsequent update of the RealmResults.

Realm observables are hot as RealmResults are automatically kept up to date.

Parámetros

Devuelve

Rx observable that emit all updates to the RealmResults.

public <any> from <E >(
)

Creates a Flowable for a RealmResults . It should emit the initial RealmResult when subscribed to and on each subsequent update of the RealmResults.

Los observables de RealmResults están de moda porque RealmResults se mantiene actualizado automáticamente.

Type Parameters

  • E - type of RealmObject

Parámetros

  • results - RealmResults to listen to changes for.

  • realm - Realm instance results are coming from.

Devuelve

Rx observable que emite todas las actualizaciones en el RealmObject.

public <any> from (
)

Creates a Flowable for a DynamicRealm . It should emit the initial state of the Realm when subscribed to and on each subsequent update of the Realm.

Los observables de DynamicRealm están siempre activos, ya que DynamicRealms se mantienen actualizados automáticamente.

Parámetros

Devuelve

Rx observable que emite todas las actualizaciones al DynamicRealm.

public <any> from (
Realm realm
)

Crea un flujo para un dominio. Debe emitir el estado inicial del dominio al suscribirse y en cada actualización posterior.

Los flowables de Realm son hot, ya que Realms se mantienen actualizados automáticamente.

Parámetros

  • realm - Realm to listen to changes for.

Devuelve

Rx observable that emit all updates to the Realm.

Volver

Fábrica observable del reino

En esta página