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:

ParameterTypeDescription
$event"updated"
listener($event: ElectronEvent, state: "interrupted" | "progressing") => voidCalled with the current state of the download.

Returns: this — This download item instance.