Skip to content

Session.on('will-download') method

Session › on(‘will-download’)

Unofficial

Emitted when Electron is about to download item in webContents.

Signature:

on(event: "will-download", listener: (event: ElectronEvent, item: ElectronDownloadItem, webContents: ElectronWebContents) => void): this

Parameters:

Parameter Type Description
event "will-download"
listener (event: ElectronEvent, item: ElectronDownloadItem, webContents: ElectronWebContents) => void

Returns: this