Contents

recordChangedBlock

The closure to execute with the contents of a changed record.

Declaration

var recordChangedBlock: ((CKRecord) -> Void)? { get set }

Discussion

The closure returns no value and takes the following parameter:

  • The changed record. If you specify a value for the desiredKeys property, the record contains only the corresponding fields.

The operation executes this closure once for each record in the record zone with changes since the previous fetch request. Each time the closure executes, it executes serially with respect to the other closures of the operation. If there aren’t any record changes, this closure doesn’t execute.

Set this property before you execute the operation or submit it to a queue.

See Also

Processing the Zone Change Operation Results