Instance Property


A data token used to track client-side changes to records.


var clientChangeTokenData: Data? { get set }


When you modify records from a fetch operation, specify a client-generated data token using this property to indicate which version of the record you last modified. Compare the data token you supplied to the data token in the next record fetch to confirm the server has successfully received the device’s last modify request.

The default value is nil.

If you intend to change the value of this property, do so before executing the operation or submitting the operation object to a queue.

See Also

Configuring the Operation Object

var recordsToSave: [CKRecord]?

The records to save to the database.

var recordIDsToDelete: [CKRecord.ID]?

The IDs of the records to delete permanently from the database.

var savePolicy: CKModifyRecordsOperation.RecordSavePolicy

The policy to apply when the server contains a newer version of a specific record.

var isAtomic: Bool

A Boolean value indicating whether the entire operation fails when one or more records in the same zone cannot be written.