Platforms to show: All Mac Windows Linux Cross-Platform
CKModifyRecordsOperationMBS class
Super class: CKDatabaseOperationMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | CloudKit | MBS Mac64bit Plugin | 16.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
After modifying the fields of a record, use this type of operation object to save those changes to a database. You also use instances of this class to delete records permanently from a database.
see
https://developer.apple.com/reference/cloudkit/ckmodifyrecordsoperation
Subclass of the CKDatabaseOperationMBS class.
- 3 events
- event modifyRecordsCompleted(savedRecords() as CKRecordMBS, deletedRecordIDs() as CKRecordIDMBS, operationError as NSErrorMBS)
- event RecordCompleted(record as CKRecordMBS, error as NSErrorMBS)
- event RecordProgress(record as CKRecordMBS, progress as Double)
- 3 properties
- property atomic as Boolean
- property clientChangeTokenData as MemoryBlock
- property savePolicy as Integer
- 7 methods
- method Constructor
- method Constructor(recordsToSave() as CKRecordMBS, recordIDsToDelete() as CKRecordIDMBS)
- method Destructor
- method recordIDsToDelete as CKRecordIDMBS()
- method recordsToSave as CKRecordMBS()
- method setrecordIDsToDelete(IDs() as CKRecordIDMBS)
- method setRecordsToSave(IDs() as CKRecordMBS)
- 3 constants
Constants
Constant | Value | Description |
---|---|---|
SaveAllKeys | 2 |
One of the constants indicating the policy to apply when saving records.
A policy that saves all keys of the record (including those that have not changed) to the server, overwriting any values currently on the server. Keys present only on the server remain unchanged. |
SaveChangedKeys | 1 |
One of the constants indicating the policy to apply when saving records.
A policy that saves only those fields of the record that actually changed, overwriting any values currently on the server. Unmodified fields are left untouched. |
SaveIfServerRecordUnchanged | 0 |
One of the constants indicating the policy to apply when saving records.
A policy that saves the record only if the local copy of the record is based on the record still on the server. The server maintains a change tag for each record automatically. When you fetch a record, that change tag is included with the rest of the record’s data. If the change tag in your local record matches the change tag of the record on the server, the save operation proceeds normally. If the server record contains a newer change tag, the record is not saved and an error of type CKErrorServerRecordChanged is reported. |
Super class CKDatabaseOperationMBS
- property database as CKDatabaseMBS
- method Constructor
Super class CKOperationMBS
- 2 events
- event Completed
- event LongLivedOperationWasPersisted
- 8 properties
- property configuration as CKOperationConfigurationMBS
- property Handle as Integer
- property operationID as String
- 7 methods
- method cancel
- method Constructor
- method Destructor
- method isCancelled as boolean
- method isExecuting as boolean
- method isFinished as boolean
- method start
This class has no sub classes.
Blog Entries
Release notes
- Version 21.2
- Fixed a problem with CKModifyRecordsOperationMBS not receiving events.
The items on this page are in the following plugins: MBS Mac64bit Plugin.
CKModifyBadgeOperationMBS - CKModifyRecordZonesOperationMBS