The full URI of the content that should be downloaded. Supports HTTP, HTTPS, and data URI.
Optional
options: DownloadOptionsThe download options.
The ID of the download.
Cancel a download and remove it from the download manager. Download will be stopped if it was running, and it will no longer be accessible through the download manager. If there is a downloaded file, partial or complete, it is deleted.
The ID of the download.
true
if the download was deleted, or false
otherwise.
Adds a new download.
The returned promise may be rejected if some of the download options are invalid, or if download cannot be performed due to platform-dependent reasons.