Skip to main content

MultiRealmCollectionChange

public enum MultiRealmCollectionChange 

Enumeration Cases#

update#

.update indicates that a write transaction has been committed which either changed which objects are in the collection, and/or modified one or more of the objects in the collection.

case update(realmCount: Int, deletions: [IndexPath], insertions: [IndexPath], modifications: [IndexPath])

All three of the change arrays are always sorted in ascending order.

Parameters#

  • deletions: The indices in the previous version of the collection which were removed from this one.
  • insertions: The indices in the new collection which were added in this version.
  • modifications: The indices of the objects in the new collection which were modified in this version.

error#

If an error occurs, notification blocks are called one time with a .error result and an NSError containing details about the error. This can only currently happen if opening the Realm on a background thread to calcuate the change set fails. The callback will never be called again after it is invoked with a .error value.

case error(Error)

update#

.update indicates that a write transaction has been committed which either changed which objects are in the collection, and/or modified one or more of the objects in the collection.

case update(realmCount: Int, deletions: [IndexPath], insertions: [IndexPath], modifications: [IndexPath])

All three of the change arrays are always sorted in ascending order.

Parameters#

  • deletions: The indices in the previous version of the collection which were removed from this one.
  • insertions: The indices in the new collection which were added in this version.
  • modifications: The indices of the objects in the new collection which were modified in this version.

error#

If an error occurs, notification blocks are called one time with a .error result and an NSError containing details about the error. This can only currently happen if opening the Realm on a background thread to calcuate the change set fails. The callback will never be called again after it is invoked with a .error value.

case error(Error)