DownloadExecuter
public protocol DownloadExecuter : AnyObject
The protocol a download executer has to conform to to be used to download.
-
The delegate to set to receive updates on downloads.
Declaration
Swift
var delegate: DownloadExecuterDelegate? { get }
-
The session configuration to use to download.
Declaration
Swift
var sessionConfiguration: URLSessionConfiguration { get }
-
# Summary Initialises a download executer to download.
Declaration
Swift
init(sessionConfiguration: URLSessionConfiguration, downloadExecuterDelegate: DownloadExecuterDelegate)
Parameters
sessionConfiguration
The session configuration to use within the download executer.
downloadExecuterDelegate
The delegate to send the download updates to.
-
# Summary Downloading the given request
Declaration
Swift
func download(request: URLRequest) -> CancellableRequest?
Parameters
request
The request to be downloaded.
Return Value
The request to be able to cancel it if necessary.