fun download(download: Download, refererURL: String = "", cookie: String = ""): Long
(source)
Schedule a download through the AndroidDownloadManager.
download
- metadata related to the download.
refererURL
- the url from where this download was referred.
cookie
- any additional cookie to add as part of the download request.
Return
the id reference of the scheduled download.