Class

CKFetchDatabaseChangesOperation

An operation that fetches changes to the database.

Declaration

class CKFetchDatabaseChangesOperation : CKDatabaseOperation

Topics

Creating an Operation

init(previousServerChangeToken: CKServerChangeToken?)

Initializes and returns an operation object configured with the previous change token.

Processing the Operation Results

var changeTokenUpdatedBlock: ((CKServerChangeToken) -> Void)?

The block to execute when the change token has changed.

var recordZoneWithIDChangedBlock: ((CKRecordZone.ID) -> Void)?

The block that processes a single record zone change.

var recordZoneWithIDWasDeletedBlock: ((CKRecordZone.ID) -> Void)?

The block that processes a single record zone deletion.

var recordZoneWithIDWasPurgedBlock: ((CKRecordZone.ID) -> Void)?

The block that processes a single record zone purge.

Configuring the Operation Object

var fetchAllChanges: Bool

Configuration setting to control whether this operation makes repeated calls to the server.

var previousServerChangeToken: CKServerChangeToken?

The change token from a previous fetch operation.

var resultsLimit: Int

The maximum number of results to fetch with this operation.

Relationships

Inherits From

Conforms To

See Also