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


convenience init(previousServerChangeToken: CKServerChangeToken?)



The previous change token.

Return Value

An initialized operation object.


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