UpdatedResults

RealmResults flow event that describes that an update has happened to elements in the observed query. It provides a reference to the new query result and a set of properties that describes the changes that happened to the query result.

Properties

Link copied to clipboard

The modified ranges of objects in the new version of the collection. It will be set as a zero-sized array if no objects were changed.

Link copied to clipboard
abstract val changes: IntArray

The modified indices in the new version of the collection.

Link copied to clipboard

The deleted ranges of objects in the previous version of the collection. It will be set as a zero-sized array if no objects were deleted.

Link copied to clipboard
abstract val deletions: IntArray

The deleted indices in the previous version of the collection. It will be set as a zero-sized array if no objects were deleted.

Link copied to clipboard

The inserted ranges of objects in the new version of the collection. It will be set as a zero-sized array if no objects were inserted.

Link copied to clipboard
abstract val insertions: IntArray

The inserted indices in the new version of the collection. It will be set as a zero-sized array if no objects were inserted.

Link copied to clipboard
abstract val list: RealmResults<T>