Instance Property

recordZoneChangeTokensUpdatedBlock

The block to execute when the change token has been updated.

Declaration

var recordZoneChangeTokensUpdatedBlock: ((CKRecordZone.ID, CKServerChangeToken?, Data?) -> Void)? { get set }

Discussion

The block returns no value and takes the following parameters:

recordZoneID

The ID of the zone with the updated token.

serverChangeToken

The new change token from the server. You can store this token locally and use it during subsequent fetch operations to limit the results to records that changed since this operation executed.

clientChangeTokenData

The last client change token received from this device. If this change token is not the last change token you provided, the server may not have received the associated changes.

The operation object executes this block once for each record zone. Each time the block is executed, it is executed serially with respect to the other progress blocks of the operation.

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

var fetchRecordZoneChangesCompletionBlock: ((Error?) -> Void)?

The block to use to process the record zone changes.

var recordChangedBlock: ((CKRecord) -> Void)?

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