An object your app uses to archive resources during an export operation.
> Important: This class handles task cancellation automatically by throwing cancellation errors up the stack if the migration system cancels the export. Don't catch the cancellation errors; doing so causes the system to kill the app extension.
Sends a file to the archiver for export.
- Parameters:
- url: The URL of a file to export. If this value doesn't contain a path, the archiver infers a path based on the last path component of the URL.
- pathInArchive: A path relative to the root URL to use when the receiving device imports this resource. The migration system uses this value as-is and performs no normalizations.