Initializes and returns an operation object configured with the previous change token.
SDKs
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+
- tvOS 10.0+
- watchOS 3.0+
Framework
- Cloud
Kit
Declaration
convenience init(previousServerChangeToken: CKServer Change Token?)
Parameters
previousServerChangeToken
The previous change token.
Return Value
An initialized operation object.
Discussion
After initializing the operation, assign a block to the fetch
property to process the results.
If a change anchor from a previous CKFetch
is passed in, only the zones that have changed since that anchor will be returned.
This per-database CKServer
is not to be confused with the per-recordZone CKServer
from CKFetch
.
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.