Module downloads

Index

Variables

Interfaces

Functions

Variables

onChanged: DownloadChangedEvent

onCreated: DownloadCreatedEvent

onErased: DownloadErasedEvent

Functions

acceptDanger(downloadId: number, callback: () => void)

Parameters

  • downloadId: number
  • callback: () => void

cancel(downloadId: number, callback?: Function)

Parameters

  • downloadId: number
  • callback?: Function optional

download(options: DownloadOptions, callback?: (downloadId: number) => void)

Parameters

  • options: DownloadOptions
  • callback?: (downloadId: number) => void optional

drag(downloadId: number)

Parameters

  • downloadId: number

erase(query: DownloadQuery, callback: (results: chrome.downloads.DownloadItem[]) => void)

Parameters

  • query: DownloadQuery
  • callback: (results: chrome.downloads.DownloadItem[]) => void

getFileIcon(downloadId: number, callback: (iconURL: string) => void)

Parameters

  • downloadId: number
  • callback: (iconURL: string) => void

getFileIcon(downloadId: number, options: GetFileIconOptions, callback: (iconURL: string) => void)

Parameters

open(downloadId: number)

Parameters

  • downloadId: number

pause(downloadId: number, callback?: Function)

Parameters

  • downloadId: number
  • callback?: Function optional

removeFile(downloadId: number, callback: () => void)

Parameters

  • downloadId: number
  • callback: () => void

resume(downloadId: number, callback?: Function)

Parameters

  • downloadId: number
  • callback?: Function optional

search(query: DownloadQuery, callback: (results: chrome.downloads.DownloadItem[]) => void)

Parameters

  • query: DownloadQuery
  • callback: (results: chrome.downloads.DownloadItem[]) => void

setShelfEnabled(enabled: boolean)

Parameters

  • enabled: boolean

show(downloadId: number)

Parameters

  • downloadId: number

showDefaultFolder()