downloads.pause()

Pause the download. If the request was successful the download is in a paused state. Otherwise runtime.lastError contains an error message. The request will fail if the download is not active.

Syntax

browser.downloads.pause(
  downloadId,      // integer
  function() {...} // optional function
)

Parameters

downloadId
integer. The id of the download to pause.
callbackOptional
function.

Browser compatibility

EdgeFirefoxChromeOpera
Basic support?48.0Yes33
Firefox
Basic support48.0

Examples

Acknowledgements

This API is based on Chromium's chrome.downloads API.

Document Tags and Contributors

 Contributors to this page: wbamberg
 Last updated by: wbamberg,