---
title: "backgroundDownload(_:didReceive:)"
framework: backgroundassets
role: symbol
role_heading: Instance Method
path: "backgroundassets/badownloaderextension-qwaw/backgrounddownload(_:didreceive:)"
---

# backgroundDownload(_:didReceive:)

## Declaration

```swift
func backgroundDownload(_ download: BADownload, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?)
```

## See Also

### Processing downloads

- [backgroundDownload(_:finishedWithFileURL:)](backgroundassets/badownloaderextension-qwaw/backgrounddownload(_:finishedwithfileurl:).md)
- [backgroundDownload(_:failedWithError:)](backgroundassets/badownloaderextension-qwaw/backgrounddownload(_:failedwitherror:).md)
