ElectronApp.on('first-instance-ack') method
ElectronApp › on(‘first-instance-ack’)
Unofficial
Registers a listener for thefirst-instance-ack event.Emitted in the second instance during
requestSingleInstanceLock when the first instance calls the ackCallback. Signature:
on(event: "first-instance-ack", listener: (event: ElectronEvent, additionalData: unknown) => void): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| event | "first-instance-ack" | The event name. |
| listener | (event: ElectronEvent, additionalData: unknown) => void | The event handler. |
Returns: this — This ElectronApp instance.