DownloadsManagerinterface
Download manager API exposed on window.glue42gd.downloads
14 Methods
cancel()⚓︎
(id: string) => Promise<void>
getAutoSave()⚓︎
() => Promise<boolean>
Retrieves the current auto savе status for downloads.
If the returned Promise resolves with true, auto saving is enabled.
onConfigurationChanged()⚓︎
(callback: (config: DownloadsConfiguration) => void) => () => void
Register a callback for download configuration changes
Parameters (1)
| Name | Type | Required | Description |
|---|---|---|---|
| callback⚓︎ | (config: DownloadsConfiguration) => void | x |
onUpdate()⚓︎
(callback: (item: DownloadItem) => void) => () => void
Register a callback for download item updates
Parameters (1)
| Name | Type | Required | Description |
|---|---|---|---|
| callback⚓︎ | (item: DownloadItem) => void | x |
pauseResume()⚓︎
(id: string) => Promise<void>
removeItem()⚓︎
(id: string) => Promise<void>
setAutoSave()⚓︎
(enabled: boolean) => Promise<void>
Enables or disables auto saving for downloads.
io.Connect Desktop 10.3@interopio/desktop 6.21Parameters (1)
| Name | Type | Required | Description |
|---|---|---|---|
| enabled⚓︎ | boolean | If |
setSavePath()⚓︎
(path: string) => Promise<void>
showInFolder()⚓︎
(id: string) => Promise<void>
showOpenDialog()⚓︎
(options: OpenDialogOptions) => Promise<OpenDialogReturnValue>
Show an open dialog for downloads
Parameters (1)
| Name | Type | Required | Description |
|---|---|---|---|
| options⚓︎ | OpenDialogOptions | x |