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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software