Contents

makeAssetDownloadTask(asset:destinationURL:options:)

Creates a download task to download the asset to the indicated location.

Declaration

func makeAssetDownloadTask(asset URLAsset: AVURLAsset, destinationURL: URL, options: [String : Any]? = nil) -> AVAssetDownloadTask?

Parameters

  • URLAsset:

    The asset to download to the local device.

  • destinationURL:

    The local file URL to download the asset to.

  • options:

    Configures non-default behavior for the download task. To download nondefault media selections, you must indicate download options.

Return Value

A new download task.

Topics

Download option keys

See Also

Creating download tasks