Skip to content

ElectronApp.on('browser-window-focus') method

ElectronApp › on(‘browser-window-focus’)

Unofficial

Registers a listener for the browser-window-focus event.

Emitted when a browserWindow gets focused.

Signature:

on(event: "browser-window-focus", listener: (event: ElectronEvent, window: ElectronBrowserWindow) => void): this

Parameters:

Parameter Type Description
event "browser-window-focus" The event name.
listener (event: ElectronEvent, window: ElectronBrowserWindow) => void The event handler.

Returns: thisThis ElectronApp instance.