---
title: "init(sourceURL:destinationURL:observedProgress:liveActivityAccessToken:)"
framework: browserenginekit
role: symbol
role_heading: Initializer
path: "browserenginekit/bedownloadmonitor-9bwls/init(sourceurl:destinationurl:observedprogress:liveactivityaccesstoken:)"
---

# init(sourceURL:destinationURL:observedProgress:liveActivityAccessToken:)

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

## Declaration

```swift
@objc(initWithSourceURL:destinationURL:observedProgress:liveActivityAccessToken:) init(sourceURL: URL, destinationURL: URL, observedProgress: Progress, liveActivityAccessToken: Data)
```

## Parameters

- `sourceURL`: The location of the resource on the web that someone wants to download.
- `destinationURL`: The location of the file to which you save the resource.
- `observedProgress`: An object you use to report the download’s progress to the system.
- `liveActivityAccessToken`: An opaque token that the system checks to verify that your networking extension can remain active while the download is in progress.

## Discussion

Discussion Generate an access token for the download by calling createAccessToken().

## See Also

### Creating a download monitor

- [createAccessToken()](browserenginekit/bedownloadmonitor-9bwls/createaccesstoken().md)
