ElectronDownloadItem.on('updated') method
ElectronDownloadItem › on(‘updated’)
Unofficial
Registers a listener for theupdated event, emitted when the download has been updated and is not done.Signature:
on($event: "updated", listener: ($event: ElectronEvent, state: "interrupted" | "progressing") => void): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| $event | "updated" | |
| listener | ($event: ElectronEvent, state: "interrupted" | "progressing") => void | Called with the current state of the download. |
Returns: this — This download item instance.