Protocol

NSFileProviderChangeObserver

An observer that receives changes and deletions during enumeration.

Declaration

protocol NSFileProviderChangeObserver

Topics

Observing Changes

func didDeleteItems(withIdentifiers: [NSFileProviderItemIdentifier])

Tells the observer that the specified items have been deleted.

Required.

func didUpdate([NSFileProviderItemProtocol])

Tells the observer that the specified items have been updated.

Required.

func finishEnumeratingChanges(upTo: NSFileProviderSyncAnchor, moreComing: Bool)

Tells the observer that all of the changes have been enumerated up to the specified sync anchor.

Required.

func finishEnumeratingWithError(Error)

Tells the observer that an error occurred during change notification.

Required.

Relationships

Inherits From

See Also

Change Tracking

Tracking Your File Provider's Changes

Create an enumerator to track changes to your file provider's content.

struct NSFileProviderSyncAnchor

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