CKSyncEngineEvent
An event that occurs during a sync operation.
Declaration
@interface CKSyncEngineEvent : NSObjectOverview
All sync operation events descend from this base class, and as such you don’t create instances of it directly. Instead, the sync engine dispatches them to your app’s delegate, periodically, throughout a sync operation.
See the documentation for each event class for more details about when and why an event is posted.
Use the type property to determine the event’s proper type, and then use the corresponding convenience property to retrieve a reference to the event that’s downcast to the appropriate subclass. For example, when CloudKit vends an event with type set to CKSyncEngineEventType.stateUpdate, use the stateUpdateEvent property to get the downcast reference.
Topics
Determining the type
Accessing account changes
Accessing fetch events
willFetchChangesEventCKSyncEngineWillFetchChangesEventwillFetchRecordZoneChangesEventCKSyncEngineWillFetchRecordZoneChangesEventfetchedDatabaseChangesEventCKSyncEngineFetchedDatabaseChangesEventfetchedRecordZoneChangesEventCKSyncEngineFetchedRecordZoneChangesEventdidFetchRecordZoneChangesEventCKSyncEngineDidFetchRecordZoneChangesEventdidFetchChangesEventCKSyncEngineDidFetchChangesEvent
Accessing send events
willSendChangesEventCKSyncEngineWillSendChangesEventsentDatabaseChangesEventCKSyncEngineSentDatabaseChangesEventsentRecordZoneChangesEventCKSyncEngineSentRecordZoneChangesEventdidSendChangesEventCKSyncEngineDidSendChangesEvent