<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVAssetDownloadDelegate",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(pl)AVAssetDownloadDelegate"
  },
  "title" : "AVAssetDownloadDelegate"
}
-->

# AVAssetDownloadDelegate

A protocol that defines the methods to implement to respond to asset-download events.

```
protocol AVAssetDownloadDelegate : URLSessionTaskDelegate
```

## Topics

### Responding to download events

[`urlSession(_:assetDownloadTask:didResolve:)`](/documentation/AVFoundation/AVAssetDownloadDelegate/urlSession(_:assetDownloadTask:didResolve:))

Tells the delegate that a download task resolved the media selection to download, including any automatic selections.

[`urlSession(_:assetDownloadTask:didLoad:totalTimeRangesLoaded:timeRangeExpectedToLoad:)`](/documentation/AVFoundation/AVAssetDownloadDelegate/urlSession(_:assetDownloadTask:didLoad:totalTimeRangesLoaded:timeRangeExpectedToLoad:))

Tells the delegate that a download task loaded a new time range.

[`urlSession(_:assetDownloadTask:didFinishDownloadingTo:)`](/documentation/AVFoundation/AVAssetDownloadDelegate/urlSession(_:assetDownloadTask:didFinishDownloadingTo:))

Tells the delegate that a download task finished downloading the requested asset.

[`urlSession(_:assetDownloadTask:willDownloadVariants:)`](/documentation/AVFoundation/AVAssetDownloadDelegate/urlSession(_:assetDownloadTask:willDownloadVariants:))

Tells the delegate that a download task completed variant selection.

[`urlSession(_:assetDownloadTask:willDownloadTo:)`](/documentation/AVFoundation/AVAssetDownloadDelegate/urlSession(_:assetDownloadTask:willDownloadTo:))

Tells the delegate when a download task determines its download location.

[`urlSession(_:assetDownloadTask:didReceive:)`](/documentation/AVFoundation/AVAssetDownloadDelegate/urlSession(_:assetDownloadTask:didReceive:))

Sent when a download task receives an AVMetricEvent.

### Responding to aggregate download events

[`urlSession(_:aggregateAssetDownloadTask:willDownloadTo:)`](/documentation/AVFoundation/AVAssetDownloadDelegate/urlSession(_:aggregateAssetDownloadTask:willDownloadTo:))

Tells the delegate the final location of the asset when the download completes.

[`urlSession(_:aggregateAssetDownloadTask:didLoad:totalTimeRangesLoaded:timeRangeExpectedToLoad:for:)`](/documentation/AVFoundation/AVAssetDownloadDelegate/urlSession(_:aggregateAssetDownloadTask:didLoad:totalTimeRangesLoaded:timeRangeExpectedToLoad:for:))

Tells the delegate that the aggregate download task loaded a new time range.

[`urlSession(_:aggregateAssetDownloadTask:didCompleteFor:)`](/documentation/AVFoundation/AVAssetDownloadDelegate/urlSession(_:aggregateAssetDownloadTask:didCompleteFor:))

Tells the delegate that a child task finished downloading a media selection.



---

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)