Contents

visit(_:)

Tells the delegate to drop all contacts and groups before handling more events.

Declaration

func visit(_ event: CNChangeHistoryDropEverythingEvent)

Parameters

  • event:

    The event that indicates the delegate should drop all contacts and groups before handling more events.

Discussion

When the system sends this event to your delegate, enough has changed since the last time your app fetched the history changes that an incremental update is no longer possible. Following the drop everything event, the system sends your delegate an add event for each contact and group currently in the database. This allows you to implement full syncs and incremental syncs using the same code.