download

abstract fun download(downloadRequest: DownloadRequest, downloadListener: DownloadListener): Long

Method for downloading files based on the supplied DownloadRequest

Return

unique download ID used as identified during whole download lifecycle

Parameters

downloadRequest

request containing url, headers and destination path for requested file

downloadListener

callback interface with updates about DownloadStatus