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

    downloadTask

    The download task the download is executed on.

    didWriteData

    The bytes already written.

    totalBytesWritten

    The bytes totally written.

    totalBytesExpectedToWrite

    The 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

    downloadTask

    The download task the download is executed on.

    didFinishDownloadingTo

    The 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

    downloadTask

    The download task the download is executed on.

    didCompleteWithError

    The error which was thrown while downloading.