DownloadExecuterDelegate
public protocol DownloadExecuterDelegate : AnyObject
Undocumented
-
# Summary Delegate which gets called when a progress update happens.
Declaration
Swift
func downloadExecuter(_ downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64)Parameters
downloadTaskThe download task the download is executed on.
didWriteDataThe bytes already written.
totalBytesWrittenThe bytes totally written.
totalBytesExpectedToWriteThe total bytes expected to write.
-
# Summary Delegate which gets called when a download did finish.
Declaration
Swift
func downloadExecuter(_ downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL)Parameters
downloadTaskThe download task the download is executed on.
didFinishDownloadingToThe location the file was downloaded to.
-
# Summary Delegate which gets called when a download fails.
Declaration
Swift
func downloadExecuter(_ downloadTask: URLSessionDownloadTask, didCompleteWithError error: Error?)Parameters
downloadTaskThe download task the download is executed on.
didCompleteWithErrorThe error which was thrown while downloading.
View on GitHub
Install in Dash
DownloadExecuterDelegate Protocol Reference