ElectronApp.on('did-become-active') method
ElectronApp › on(‘did-become-active’)
Unofficial
Registers a listener for thedid-become-active event.Emitted every time the app becomes active. macOS only.
Signature:
on(event: "did-become-active", listener: (event: ElectronEvent) => void): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| event | "did-become-active" | The event name. |
| listener | (event: ElectronEvent) => void | The event handler. |
Returns: this — This ElectronApp instance.