---
title: "openExportBrowsingDataSettings(completionHandler:)"
framework: safariservices
role: symbol
role_heading: Type Method
path: "safariservices/sfsafarisettings/openexportbrowsingdatasettings(completionhandler:)"
---

# openExportBrowsingDataSettings(completionHandler:)

Presents the Export Browsing Data sheet from Safari Settings.

## Declaration

```swift
class func openExportBrowsingDataSettings(completionHandler: (@MainActor @Sendable ((any Error)?) -> Void)? = nil)
```

```swift
class func openExportBrowsingDataSettings() async throws
```

## Parameters

- `completionHandler`: A block the system calls after the operation completes, with an optional error parameter.

## Mentioned in

Importing data exported from Safari

## Discussion

Discussion This method presents the same data export sheet accessible in Safari’s settings, which enables someone to export their browsing data to a file. The data includes page visit history, reading list information, bookmarks, passwords, payment cards, and browser extensions. The method returns an error unless you call it while your app is in the foreground. For information on the file format and steps to import the data, see Importing data exported from Safari.
