ElectronApp.on('browser-window-focus') method
ElectronApp › on(‘browser-window-focus’)
Unofficial
Registers a listener for thebrowser-window-focus event.Emitted when a browserWindow gets focused.
Signature:
on($event: "browser-window-focus", listener: ($event: ElectronEvent, window: ElectronBrowserWindow) => void): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| $event | "browser-window-focus" | |
| listener | ($event: ElectronEvent, window: ElectronBrowserWindow) => void | The event handler. |
Returns: this — This ElectronApp instance.