DownloaderProgressDelegate

public protocol DownloaderProgressDelegate : AnyObject

Download progress delegate.

  • Informs when downloaded size or total files size changes.

    Declaration

    Swift

    func downloadDidUpdate(progress: Float, downloadedSize: Int64, totalSize: Int64)
  • Informs on changes in download task count progress.

    Declaration

    Swift

    func downloadDidUpdate(progress: Float, finishedTaskCount: Int64, taskCount: Int64)

    Parameters

    progress

    Progress as a percentage.

    finishedTaskCount

    Finished task count.

    taskCount

    Total running task count.

  • Informs when download operations started.

    Declaration

    Swift

    func downloadStarted()
  • Informs when all download operations finished successfully.

    Declaration

    Swift

    func downloadDidComplete()
  • Informs when downloaded operations finished and some of them have errors.

    Declaration

    Swift

    func downloadDidCompletedWithError(tasks: [DMSwiftTypealias.Download.FailedTask])

    Parameters

    tasks

    Failed to complete tasks.