public interface NSFileProviderChangeObserver
| Modifier and Type | Method and Description |
|---|---|
void |
didDeleteItemsWithIdentifiers(NSArray<java.lang.String> deletedItemIdentifiers)
Delete existing items.
|
void |
didUpdateItems(NSArray<?> updatedItems)
Send updates to existing items, or insert new items.
|
void |
finishEnumeratingChangesUpToSyncAnchorMoreComing(NSData anchor,
boolean moreComing)
This method is used to complete a batch of changes.
|
void |
finishEnumeratingWithError(NSError error)
If the enumeration fails with NSFileProviderErrorSyncAnchorExpired, we will
drop all cached data and start the enumeration over starting with sync anchor
nil.
|
void didDeleteItemsWithIdentifiers(NSArray<java.lang.String> deletedItemIdentifiers)
void didUpdateItems(NSArray<?> updatedItems)
void finishEnumeratingChangesUpToSyncAnchorMoreComing(NSData anchor, boolean moreComing)
It is expected that the sync anchor passed here be different than the sync anchor that the enumeration started at, unless the client was already up to date on all the changes on the server, and didn't have any pending updates or deletions.
Additionally, if the client is up to date on all the changes on the server it should set moreComing to NO.
Sync anchor data is limited to 500 bytes. Setting a larger anchor has the same effect as calling finishEnumeratingWithError with an expired sync anchor error.
void finishEnumeratingWithError(NSError error)