Vdo Download Manager
VdoDownloadManager handles enqueuing download requests and management of media downloads.
New download requests can be added which will remain in queue and downloaded serially.
Status of media downloads can be requested using filtered queries.
Download events can be listened to by registering a listener with the VdoDownloadManager instance. Make sure to unregister listener when not required to avoid memory leaks.
Types
Link copied to clipboard
interface EventListener
Callback interface for listening to download events.
Link copied to clipboard
interface QueryResultListener
Callback interface for listening to query results.
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Add a listener for download events.
Link copied to clipboard
Enqueue a request to be downloaded.
Link copied to clipboard
Enqueue a request to be downloaded.
Link copied to clipboard
open fun getInstance(@NonNull context: Context, @Nullable downloadLocation: String): VdoDownloadManager
Get an instance of VdoDownloadManager.
Link copied to clipboard
Link copied to clipboard
open fun getSavedMediaItems(@NonNull query: VdoDownloadManager.Query, @NonNull queryResultListener: VdoDownloadManager.QueryResultListener)
Query the VdoDownloadManager about media saved for offline playback without drm license.
Link copied to clipboard
Link copied to clipboard
open fun query(@NonNull query: VdoDownloadManager.Query, @NonNull queryResultListener: VdoDownloadManager.QueryResultListener)
Query the VdoDownloadManager about media downloads that have been requested.
Link copied to clipboard
Remove a listener of download events.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Resume download for given media ids.
Link copied to clipboard
Enqueue a request to be downloaded.
Link copied to clipboard
open fun setDownloadNotificationHelper(@Nullable downloadNotificationHelper: Class<out VdoDownloadNotificationHelper>)
Change download notification look and feel.
Link copied to clipboard
Link copied to clipboard
Stop download for given media ids.