kotlin-extensions / io.realm.kotlin / io.realm.RealmList

Extensions for io.realm.RealmList

toChangesetFlow

Returns a Flow that monitors changes to this RealmList. It will emit the current RealmList upon subscription. For each update to the RealmList a CollectionChange consisting of a pair with the RealmList and its corresponding OrderedCollectionChangeSet will be sent. The changeset will be null the first time the RealmList is emitted.

fun <T> RealmList<T>.toChangesetFlow(): Flow<CollectionChange<RealmList<T>>>

toFlow

Returns a Flow that monitors changes to this RealmList. It will emit the current RealmResults when subscribed to. RealmList updates will continually be emitted as the RealmList is updated - onCompletion will never be called.

fun <T> RealmList<T>.toFlow(): Flow<RealmList<T>>