Initializer

init(previousServerChangeToken:)

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

Declaration

convenience init(previousServerChangeToken: CKServerChangeToken?)

Parameters

previousServerChangeToken

The previous change token.

Return Value

An initialized operation object.

Discussion

After initializing the operation, assign a block to the fetchDatabaseChangesCompletionBlock property to process the results.

If a change anchor from a previous CKFetchDatabaseChangesOperation is passed in, only the zones that have changed since that anchor will be returned.

This per-database CKServerChangeToken is not to be confused with the per-recordZone CKServerChangeToken from CKFetchRecordZoneChangesOperation.

If this is your first fetch or if you wish to re-fetch all zones, pass nil for the change token. Change tokens are opaque and clients should not infer any behavior based on their content.

See Also

Creating an Operation

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