downloads

Enables extensions to interact with the browser's download manager. You can use this API module to download files, cancel, pause, resume downloads, and show downloaded files in the file manager.

To use this API you need to have the "downloads" API permission specified in your manifest.json file.

Types

downloads.FilenameConflictAction

Defines options for what to do if the name of a downloaded file conflicts with an existing file.

downloads.InterruptReason

Defines a set of possible reasons why a download was interrupted.

downloads.DangerType

Defines a set of common warnings of possible dangers associated with downloadable files.

downloads.State

Defines different states that a current download can be in.

downloads.DownloadItem

Represents a downloaded file.

downloads.StringDelta

Represents the difference between two strings.

downloads.DoubleDelta

Represents the difference between two doubles.