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"
listener($event: ElectronEvent) => voidThe event handler.

Returns: this — This ElectronApp instance.