Contents

urlSession(_:assetDownloadTask:didFinishDownloadingTo:)

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

Declaration

optional func urlSession(_ session: URLSession, assetDownloadTask: AVAssetDownloadTask, didFinishDownloadingTo location: URL)

Parameters

  • session:

    The session the asset download task is on.

  • assetDownloadTask:

    The download task whose downloaded completed.

  • location:

    The download location of the asset.

Discussion

Don’t move the downloaded asset from this location. Downloaded assets must remain at the system-provided URL. Instead, save a persistent reference to this URL for future use.

See Also

Responding to download events