itemChanged(at:)
Tells the File Provider extension that a document has changed.
Declaration
func itemChanged(at url: URL)Parameters
- url:
The URL of a shared document.
Discussion
The system calls this method when a shared file’s content changes, typically in response to coordinated writes from the host app.
You must override this method and respond to these changes. Do not call super in your implementations.
In your implementation, defer all networking, asynchronous, or long-running operations to background tasks. For networking tasks, create a background URLSession task, and then register the task with the file provider manager by calling the manager’s register(_:forItemWithIdentifier:completionHandler:) method.