ObjectChange

@frozen
public enum ObjectChange<T> where T : Object

Information about the changes made to an object which is passed to Object‘s notification blocks.

  • If an error occurs, notification blocks are called one time with a .error result and an NSError containing details about the error. Currently the only errors which can occur are when opening the Realm on a background worker thread to calculate the change set. The callback will never be called again after .error is delivered.

    Declaration

    Swift

    case error(_: NSError)
  • One or more of the properties of the object have been changed.

    Declaration

    Swift

    case change(T, [PropertyChange])
  • The object has been deleted from the Realm.

    Declaration

    Swift

    case deleted