DownloadManager
Provides an implementation of IDownloadManager that uses an application database to track the requests. The requests placed in the database will be downloaded asynchronously in a separate process. Any request sets that have been marked for deletion will be cancelled.
Types
Link copied to clipboard
Provides mutable implementation of IRequest, which can be used to submit download requests to the IDownloadManager.
Properties
Functions
Link copied to clipboard
Link copied to clipboard
open 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
open 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
Get all of the notification channels assigned to this DownloadManager instance
Link copied to clipboard
Queries the overall download status of the specified download request set.
Link copied to clipboard
Gets reference to the single instance of the default download manager.
Link copied to clipboard
Retrieve the NotificationChannel specified by ID (or null if the NotificationChannel does not exist)
Link copied to clipboard
Pauses download of the specified request set, if it is not already paused.
Link copied to clipboard
Link copied to clipboard
Remove the NotificationChannel with the spedified ID from the NotificationManager
Link copied to clipboard
Resumes download of the specified request set, if it is currently paused.
Link copied to clipboard
Set the specified NotificationChannel This is typically done when use of a customized NotificationChannel (for example, to manage Notification sound settings) is desired.