mzeeshanid / MZDownloadManager

This download manager uses NSURLSession api to download files. It can download multiple files at a time. It can download large files if app is in background. It can resume downloads if app was quit.
BSD 3-Clause "New" or "Revised" License
1.12k stars 238 forks source link

Tracking download model with optional extra param #47

Open devanshu2 opened 7 years ago

devanshu2 commented 7 years ago

@mzeeshanid MZDownloadModel should have an extra public optional variable so that i will be easy to track what is being downloaded.

open class MZDownloadModel { open var optionalData:Any? }

public func addDownloadTask(_ fileName: String, fileURL: String, destinationPath: String, andOptionalData optionalData:Any?)

I am facing issue to distinguish my downloads (without using url) :-(