Class

CKFetchRecordZonesOperation

An operation used to retrieve zones from a database in CloudKit.

Declaration

class CKFetchRecordZonesOperation : CKDatabaseOperation

Overview

Use this operation object to fetch record zones so that you can ascertain their capabilities.

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

init(recordZoneIDs: [CKRecordZone.ID])

Initializes and returns an operation object configured to fetch the specified record zones.

Getting All Record Zones

class func fetchAllRecordZonesOperation() -> Self

Returns an operation object that can be used to fetch all record zones in the current database.

Configuring the Operation Object

var recordZoneIDs: [CKRecordZone.ID]?

The IDs of the record zones you want to retrieve.

Processing the Operation Results

Relationships

Inherits From

Conforms To

See Also

Fetching Records

class CKFetchRecordsOperation

An operation used to retrieve records from CloudKit.

class CKFetchRecordZoneChangesOperation

An operation that fetches record changes across the given record zone.

class CKServerChangeToken

An object that identifies a specific version of a record.