cancelDownload

abstract fun cancelDownload(fileDescriptor: RainbowFileDescriptor): Boolean

Cancel the download started on the RainbowFileDescriptor. If there is a downloaded file, partial or complete, it is deleted.

This method uses DownloadManager.remove(long...)

Return

Returns true if the download was successfully cancelled. Returns false on failure

Parameters

fileDescriptor

RainbowFileDescriptor associated to the download