Contents

materializedItemsDidChange(completionHandler:)

Tells the file provider that the set of materialized items changed.

Declaration

optional func materializedItemsDidChange(completionHandler: @escaping  @Sendable () -> Void)
optional func materializedItemsDidChange() async

Parameters

  • completionHandler:

    A block that you call after you finish processing the changes.

Mentioned in

Discussion

The system calls this method when the set of materialized items changes, such as when the system downloads the content of a dataless item, or deletes the contents of a materialized item.

Keep track of the items in the working set—the set of items that the system has downloaded and is managing on disk—to optimize updates. Your file provider must let the system know about any changes to the working set. If you don’t track the working set, then you need to let the system know about any changes to any items in the remote storage.

For more information, see Synchronizing the File Provider Extension.