<!--
{
  "availability" : [
    "iOS: 18.2.0 -",
    "iPadOS: 18.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BrowserEngineKit",
  "identifier" : "/documentation/BrowserEngineKit/BEDownloadMonitor-9bwls",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "BrowserEngineKit"
    ],
    "preciseIdentifier" : "c:@M@BrowserEngineKit@objc(cs)BEDownloadMonitor"
  },
  "title" : "BEDownloadMonitor"
}
-->

# BEDownloadMonitor

An object that reports the status of web downloads to the system.

```
@objc(BEDownloadMonitor) class BEDownloadMonitor
```

## Overview

When someone downloads a file in your web browser, create an instance of this class to report progress to the system, and optionally create a placeholder file in the person’s Downloads folder.
For more information, see [Downloading files in a web browser with an alternative browser engine](/documentation/BrowserEngineKit/downloading-files-in-a-web-browser).

## Topics

### Creating a download monitor

[`init(sourceURL: URL, destinationURL: URL, observedProgress: Progress, liveActivityAccessToken: Data)`](/documentation/BrowserEngineKit/BEDownloadMonitor-9bwls/init(sourceURL:destinationURL:observedProgress:liveActivityAccessToken:))

Initializes a download monitor to report progress for the specified download.

[`static func createAccessToken() -> Data?`](/documentation/BrowserEngineKit/BEDownloadMonitor-9bwls/createAccessToken())

Generates an opaque token that the system uses to keep your networking extension active in the background.

### Creating a download placeholder

[`func useDownloadsFolder(placeholderType: UTType?, finalFileCreatedHandler: (BEDownloadMonitor.Location?) -> Void)`](/documentation/BrowserEngineKit/BEDownloadMonitor-9bwls/useDownloadsFolder(placeholderType:finalFileCreatedHandler:))

Asks the system to create a placeholder for the downloaded file in the person’s Downloads folder.

[`class Location`](/documentation/BrowserEngineKit/BEDownloadMonitor-9bwls/Location)

A class that associates a URL with the bookmark you use to access that URL.

### Reporting progress to the system

[`func beginMonitoring() async throws -> BEDownloadMonitor.Location?`](/documentation/BrowserEngineKit/BEDownloadMonitor-9bwls/beginMonitoring())

Informs the system to start monitoring the download.

[`func resumeMonitoring(placeholderURL: URL) async throws`](/documentation/BrowserEngineKit/BEDownloadMonitor-9bwls/resumeMonitoring(placeholderURL:))

Informs the system that it needs to resume monitoring the download.

### Getting information about a download

[`let sourceURL: URL`](/documentation/BrowserEngineKit/BEDownloadMonitor-9bwls/sourceURL)

A URL to a remote file to download.

[`let destinationURL: URL`](/documentation/BrowserEngineKit/BEDownloadMonitor-9bwls/destinationURL)

A local file path to the downloaded file.

## Relationships

### Conforms To

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

[`Identifiable`](/documentation/Swift/Identifiable)

[`CVarArg`](/documentation/Swift/CVarArg)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)