Session.on('will-download') method
Session › on(‘will-download’)
Unofficial
Emitted when Electron is about to downloaditem in webContents. Signature:
on(event: "will-download", listener: (event: ElectronEvent, item: ElectronDownloadItem, webContents: ElectronWebContents) => void): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| event | "will-download" | |
| listener | (event: ElectronEvent, item: ElectronDownloadItem, webContents: ElectronWebContents) => void |
Returns: this