Initializer

init(configuration:assetDownloadDelegate:delegateQueue:)

Creates and initializes an asset download URL session.

Declaration

init(configuration: URLSessionConfiguration, assetDownloadDelegate delegate: AVAssetDownloadDelegate?, delegateQueue: OperationQueue?)

Parameters

configuration

The configuration for this download session. This must be a background configuration or an exception will be raised.

delegate

The delegate object to handle asset download progress updates and other session related events.

delegateQueue

The queue to receive delegate callbacks on. If nil, a serial queue will be provided.

Return Value

Discussion

Creates a new instance of AVAssetDownloadURLSession. This object is used to create and execute AVAssetDownloadTask objects.

See Also

Creating an Instance

protocol AVAssetDownloadDelegate

Methods you can implement to handle download-related events.