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
progressProgress as a percentage.
finishedTaskCountFinished task count.
taskCountTotal 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
tasksFailed to complete tasks.
DownloaderProgressDelegate Protocol Reference