IDownloadManager
interface IDownloadManager
Defines the contract of a download manager, which can used to queue and manage download requests.
Inheritors
Types
Functions
Link copied to clipboard
abstract fun createDownloadRequestSet(requestConfig: RequestConfig, estimatedSize: Long, listener: DownloadManager.Listener): Observable<DownloadRequestSet>
Creates an empty download request set with the specified estimated size.
Link copied to clipboard
Cancels all the download requests in the specified set and removes the download request set.
Link copied to clipboard
abstract fun enqueueDownload(requestSet: DownloadRequestSet, requests: Array<IDownloadManager.IRequest>): Observable<DownloadRequestSet>
Enqueues a set of download requests to the specified request set.
Link copied to clipboard
Queries the overall download status of the specified download request set.
Link copied to clipboard
Pauses download of the specified request set, if it is not already paused.
Link copied to clipboard
Resumes download of the specified request set, if it is currently paused.