Contents

importResources(at:request:)

Imports resources to the app, in response to a request from the migration system.

Declaration

func importResources(at url: URL, request: ResourcesImportRequest) async throws

Parameters

  • url:

    A URL that refers to a directory containing the resources to import.

  • request:

    A request object that describes the source of the migration.

Discussion

Implement this method in your app extension to import files to your app from the source device. You can accomplish this task by moving all files from the directory indicated by url to an appropriate location for your app, such as the documents directory.

See Also

Importing resources