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
sessionConfigurationThe session configuration to use within the download executer.
downloadExecuterDelegateThe delegate to send the download updates to.
-
# Summary Downloading the given request
Declaration
Swift
func download(request: URLRequest) -> CancellableRequest?Parameters
requestThe request to be downloaded.
Return Value
The request to be able to cancel it if necessary.
View on GitHub
Install in Dash
DownloadExecuter Protocol Reference