---
title: "startDownload(using:completionHandler:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/wkwebview/startdownload(using:completionhandler:)"
---

# startDownload(using:completionHandler:)

Starts to download the resource at the URL in the request.

## Declaration

```swift
func startDownload(using request: URLRequest, completionHandler: @escaping @MainActor @Sendable (WKDownload) -> Void)
```

```swift
func startDownload(using request: URLRequest) async -> WKDownload
```

## Parameters

- `request`: An object that encapsulates a URL and other parameters that you need to download a resource from a webpage.
- `completionHandler`: A closure the system executes when it has started to download the resource.

## Discussion

Discussion To receive progress updates, set the delegate of the download object in the completion handler.

## See Also

### Managing downloads

- [resumeDownload(fromResumeData:completionHandler:)](webkit/wkwebview/resumedownload(fromresumedata:completionhandler:).md)
