Instance Property

recordChangedBlock

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

Declaration

@property(nonatomic, copy, nonnull) void (^recordChangedBlock)(CKRecord *record);

Discussion

The block returns no value and takes the following parameters:

record

The record that changed. If you specified a value for the desiredKeys property, the record only contains the fields specified in the desiredKeys property.

The operation object executes this block once for each record in the zone that changed since the previous fetch request. Each time the block is executed, it is executed serially with respect to the other progress blocks of the operation. If no records changed, the block is not executed.

If you intend to use this block to process results, set it before executing the operation or submitting it to a queue.

See Also

Processing the Operation Results

recordWithIDWasDeletedBlock

The block to execute with the ID of a record that was deleted.

Deprecated
fetchRecordChangesCompletionBlock

The block to execute when all changes have been reported.

Deprecated
moreComing

A Boolean value indicating that more results are available.

Deprecated