DownloadManager.Enqueue(DownloadManager+Request) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enqueue a new download.
[Android.Runtime.Register("enqueue", "(Landroid/app/DownloadManager$Request;)J", "GetEnqueue_Landroid_app_DownloadManager_Request_Handler")]
public virtual long Enqueue(Android.App.DownloadManager.Request? request);
[<Android.Runtime.Register("enqueue", "(Landroid/app/DownloadManager$Request;)J", "GetEnqueue_Landroid_app_DownloadManager_Request_Handler")>]
abstract member Enqueue : Android.App.DownloadManager.Request -> int64
override this.Enqueue : Android.App.DownloadManager.Request -> int64
Parameters
- request
- DownloadManager.Request
DownloadManager.Request: the parameters specifying this download
Returns
An ID for the download, unique across the system. Use this ID for future calls related to the download. On Android 15 through Android 17, returns -1 if insertion into the download provider returns null. Other failures can throw an exception.
- Attributes
Remarks
Enqueue a new download. The download will start automatically once the download manager is ready to execute it and connectivity is available.
Android reference for android.app.DownloadManager.enqueue.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.