Platforms to show: All Mac Windows Linux Cross-Platform

Back to CKFetchRecordChangesOperationMBS class.

CKFetchRecordChangesOperationMBS.fetchRecordChangesCompleted(serverChangeToken as CKServerChangeTokenMBS, clientChangeTokenData as MemoryBlock, operationError as NSErrorMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ❌ No
The event to execute when all changes have been reported.

The block returns no value and takes the following parameters:

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.
clientChangeToken: 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.
operationError: An error object containing information about a problem, or nil if the changes are retrieved successfully.

Your implementation of this block should check the moreComing property of the operation object to ensure that the server was able to deliver all results. If that property is set to true, you must create another operation object (using the value in the serverChangeToken parameter) to fetch any remaining changes.

The operation object executes this block only once, at the conclusion of the operation. It is executed after all individual change blocks but before the operation’s completed event. The block is executed serially with respect to the other progress blocks of the operation.

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

CKFetchRecordChangesOperationMBS.recordChanged(record as CKRecordMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ❌ No
The event to execute with the contents of a changed record.

The event 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 event 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 event to process results, set it before executing the operation or submitting it to a queue.

CKFetchRecordChangesOperationMBS.recordWithIDWasDeleted(recordID as CKRecordIDMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ❌ No
The block to execute with the ID of a record that was deleted.

The block returns no value and takes the following parameters:

recordID: The ID of the record that was deleted.

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

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

The items on this page are in the following plugins: MBS Mac64bit Plugin.


The biggest plugin in space...