urlSession(_:assetDownloadTask:willDownloadTo:)
Tells the delegate when a download task determines its download location.
Declaration
optional func urlSession(_ session: URLSession, assetDownloadTask: AVAssetDownloadTask, willDownloadTo location: URL)Parameters
- session:
The session the asset download task is on.
- assetDownloadTask:
The download task.
- location:
The URL the task downloads the asset to.
Discussion
Save the returned URL to instantiate the asset in the future.