enqueueDownload

abstract fun enqueueDownload(requestSet: DownloadRequestSet, requests: Array<IDownloadManager.IRequest>): Observable<DownloadRequestSet>

Enqueues a set of download requests to the specified request set. The status of the download request set will be more to STATUS_PENDING immediately adding the requests to the database. The DownloadManager will start to process the download requests after this call, because of network availability and current download queue load.

Please note the operation will be carried on a background i/o thread.

Return

reference to an Observable that must subscribed to complete operation and obtain the result.

Parameters

requestSet

reference to the

requests

the download requests to be enqueued.