requestImport(for:completionHandler:)
Requests that the system display the sheet to import data from another browser.
Declaration
func requestImport(for metadata: BEImportMetadata, completionHandler: @escaping @Sendable (BEImportOptions?, (any Error)?) -> Void)func requestImport(for metadata: BEImportMetadata) async throws -> BEImportOptionsParameters
- metadata:
Metadata that describes the import capabilities, including file import support.
- completionHandler:
A closure that the system calls and provides the import options, which contain the person’s selections in the sheet.
Mentioned in
Discussion
Call this method when someone interacts with your browser app’s UI to import browsing data from another browser app.
This method provides your completion handler an option that indicates whether the person requests loading browsing data from files rather than directly from another browser on the device.