Skip to content

ElectronDownloadItem.on('updated') method

ElectronDownloadItem › on(‘updated’)

Unofficial

Registers a listener for the updated event, emitted when the download has been updated and is not done.

Signature:

on(event: "updated", listener: (event: ElectronEvent, state: "interrupted" | "progressing") => void): this

Parameters:

Parameter Type Description
event "updated" The event name.
listener (event: ElectronEvent, state: "interrupted" | "progressing") => void Called with the current state of the download.

Returns: thisThis download item instance.