---
title: "requestImport(for:completionHandler:)"
framework: BrowserKit
role: symbol
role_heading: Instance Method
platforms: [iOS 26.4+, iPadOS 26.4+]
path: "browserkit/bebrowserdataimportmanager/requestimport(for:completionhandler:)"
---

# requestImport(for:completionHandler:)

Requests that the system display the sheet to import data from another browser.

## Declaration

```swift
func requestImport(for metadata: BEImportMetadata, completionHandler: @escaping @Sendable (BEImportOptions?, (any Error)?) -> Void)
```

```swift
func requestImport(for metadata: BEImportMetadata) async throws -> BEImportOptions
```

## Parameters

- `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

Transferring browsing data to another browser

## Discussion

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.

## See Also

### Importing browser data

- [importBrowserData(token:)](browserkit/bebrowserdataimportmanager/importbrowserdata(token:).md)
