Contents

NSFileProviderSyncAnchor

A synchronization point that represents the last batch of changes returned by the enumerator.

Declaration

struct NSFileProviderSyncAnchor

Discussion

Your file provider should populate the sync anchor with the information it needs to identify and enumerate only the changes that occurred after the synchronization point. For example, a simple sync anchor could use the time and date of the last update successfully downloaded from the server. A request to enumerate changes from that sync anchor would then return only the changes downloaded after that date.

The system only retains the last anchor passed to it. After the system calls enumerateChanges(for:from:) with a sync anchor, it’s safe to deallocate any older sync anchors.

Topics

Creating Sync Anchors

See Also

Change Tracking