Class

CKModifyRecordZonesOperation

An operation that saves or deletes record zones.

Declaration

class CKModifyRecordZonesOperation : CKDatabaseOperation

Overview

After creating one or more record zones, use this operation object to save those zones to the database. You can also use it to delete existing zones and the records they contain.

If you assign a completion block to the completionBlock property of the operation object, the completion block is called after the operation executes and returns its results to you. You can use a completion block to perform housekeeping chores related to the operation, but do not use it to process the results of the operation itself. Any completion block you specify should be prepared to handle the failure of the operation to complete its task, whether due to an error or an explicit cancellation.

Topics

Initializing the Operation Object

Configuring the Operation Object

var recordZonesToSave: [CKRecordZone]?

The record zones to save to the database.

var recordZoneIDsToDelete: [CKRecordZone.ID]?

The IDs of the record zones to delete permanently from the database.

Processing the Operation Results

var modifyRecordZonesCompletionBlock: (([CKRecordZone]?, [CKRecordZone.ID]?, Error?) -> Void)?

The block to execute after the status of all changes is known.

Relationships

Inherits From

Conforms To

See Also

Modifying Records

class CKModifyRecordsOperation

An operation that saves changes to one or more record objects.