Platforms to show: All Mac Windows Linux Cross-Platform

Back to CKFetchRecordZoneChangesOperationMBS class.

CKFetchRecordZoneChangesOperationMBS.fetchRecordZoneChangesCompleted(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 use to process the record zone changes.

The event has no return value and takes the following parameter:

operationError: An error object containing information about a problem, or nil if the record zone changes were retrieved successfully.

CKFetchRecordZoneChangesOperationMBS.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 block to execute with the contents of a changed record.

The block returns no value and takes the following parameter:

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.

CKFetchRecordZoneChangesOperationMBS.recordWithIDWasDeleted(recordID as CKRecordIDMBS, recordType as string)

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 ID of a record that was deleted.

The event returns no value and takes the following parameter:

recordID: The ID of the record that was deleted.

The operation object executes this block once for each record that was deleted 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 were deleted, this 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.

CKFetchRecordZoneChangesOperationMBS.recordZoneChangeTokensUpdated(recordZoneID as CKRecordZoneIDMBS, serverChangeToken as CKServerChangeTokenMBS, clientChangeTokenData as MemoryBlock)

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 the change token has been updated.

The event 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.

CKFetchRecordZoneChangesOperationMBS.recordZoneFetchCompleted(recordZoneID as CKRecordZoneIDMBS, serverChangeToken as CKServerChangeTokenMBS, clientChangeTokenData as MemoryBlock, moreComing as boolean, recordZoneError 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 the fetch for a zone has completed.

The block returns no value and takes the following parameters:

recordZoneID: The ID of the zone with the updated token.
serverChangeToken: The current server change token to be stored and used in subsequent CKFetchRecordZoneChangesOperation instances.
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.
moreComing: Indicates if this is the last record zone change. If fetchAllChanges is false, it is the responsibility of the client to create additional CKFetchRecordZoneChangesOperationMBS instances for the additional changes.
recordZoneError: An error object containing information about a problem, or nil if the results are retrieved successfully.

The client is responsible for saving the change token at the end of the operation and passing it into the next call to CKFetchRecordZoneChangesOperationMBS. 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 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...