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


class CKFetchRecordZoneChangesOperation : CKDatabaseOperation


Creating a CKFetchRecordZoneChangesOperation Object

init(recordZoneIDs: [CKRecordZone.ID], optionsByRecordZoneID: [CKRecordZone.ID : CKFetchRecordZoneChangesOperation.ZoneOptions]?)

Initializes and returns an operation object configured to fetch record zone changes.


Configuring the Operation Object

var fetchAllChanges: Bool

A Boolean value indicating whether repeated requests should be sent to the server.

var optionsByRecordZoneID: [CKRecordZone.ID : CKFetchRecordZoneChangesOperation.ZoneOptions]?

Options for each zone that is retrieved from the server.

var recordZoneIDs: [CKRecordZone.ID]?

The IDs of the record zones whose records you want to fetch.

class CKFetchRecordZoneChangesOperation.ZoneOptions

Options when fetching record zone changes.


Processing the Operation Results

var fetchRecordZoneChangesCompletionBlock: ((Error?) -> Void)?

The block to use to process the record zone changes.

var recordChangedBlock: ((CKRecord) -> Void)?

The block to execute with the contents of a changed record.


Inherits From

Conforms To

See Also

Fetching Records

class CKFetchRecordsOperation

An operation used to retrieve records from CloudKit.

class CKFetchRecordZonesOperation

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

class CKServerChangeToken

An object that identifies a specific version of a record.