Platforms to show: All Mac Windows Linux Cross-Platform

Back to CKModifyRecordsOperationMBS class.

CKModifyRecordsOperationMBS.modifyRecordsCompleted(savedRecords() as CKRecordMBS, deletedRecordIDs() as CKRecordIDMBS, 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 after the status of all changes is known.

The event returns no value and takes the following parameters:

savedRecords: The array of CKRecordMBS objects you tried to save.
deletedRecordIDs: The array of CKRecordIDMBS objects corresponding to the records you tried to delete.
operationError: An error object containing information about a problem, or nil if the results are saved successfully.

This event is executed only once and represents your last chance to process the operation results. It is executed after all individual progress blocks have completed but before the operation’s completion block. The block 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 the operation object to a queue.

This block reports an error of type CKErrorPartialFailure when it saves or deletes only some of the records successfully. The userInfo dictionary of the error contains a CKPartialErrorsByItemIDKey key whose value is a dictionary. The keys of that dictionary are the IDs of the records that were not saved or deleted, and the corresponding values are error objects containing information about what happened.

CKModifyRecordsOperationMBS.RecordCompleted(record as CKRecordMBS, error 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 save results of a single record are known.

The event returns no value and takes the following parameters:

record: A CKRecordMBS object that you attempted to save.
error: An error object containing information about a problem, or nil if the record was saved successfully.

This block is executed once for each record in the recordsToSave property. Each time the block is executed, it is executed serially with respect to the other progress events 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. Use this block to take any actions after the status of saving the record is known.

CKModifyRecordsOperationMBS.RecordProgress(record as CKRecordMBS, progress as Double)

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 progress information for an individual record.

The block returns no value and takes the following parameters:

record: The CKRecordMBS object that is in the process of being saved.
progress: The amount of progress toward saving the record, expressed as a percentage of its total size. This value is a number between 0.0 and 1.0, where 0.0 means none of the record is saved and 1.0 means the entire record has been saved.

The operation object executes this block zero or more times for each record in the recordsToSave property. 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 the operation object to a queue. Use this block to track the ongoing progress of the upload operation and possibly to provide feedback to the user.

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


The biggest plugin in space...