Skip to content

ElectronApp.on('did-become-active') method

ElectronApp › on(‘did-become-active’)

Unofficial

Registers a listener for the did-become-active event.

Emitted every time the app becomes active. macOS only.

Signature:

on(event: "did-become-active", listener: (event: ElectronEvent) => void): this

Parameters:

ParameterTypeDescription
event"did-become-active"The event name.
listener(event: ElectronEvent) => voidThe event handler.

Returns: thisThis ElectronApp instance.