ElectronApp.on('activate') method
ElectronApp › on(‘activate’)
Unofficial
Registers a listener for theactivate event.Emitted when the application is activated. macOS only.
Signature:
on($event: "activate", listener: ($event: ElectronEvent, hasVisibleWindows: boolean) => void): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| $event | "activate" | |
| listener | ($event: ElectronEvent, hasVisibleWindows: boolean) => void | The event handler. |
Returns: this — This ElectronApp instance.