downloadFile

abstract fun downloadFile(fileDescriptor: RainbowFileDescriptor, listener: IFileProxy.IDownloadPublicFileListener?)

Download the file from the server. This method uses the Android DownloadManager

See also

cancelDownload to cancel the download

Parameters

fileDescriptor

RainbowFileDescriptor associated with the file to download, the fileDescriptor keeps track of the download progression with the method getPercentProgression()

listener

IDownloadPublicFileListener Callback with following method : onStart(RainbowFileDescriptor) called when the download is started onSuccess(RainbowFileDescriptor) called when the download is successfully finished onFailed(RainbowServiceException) called if an error occurred during the download