Skip to content

ElectronApp.on('first-instance-ack') method

ElectronApp › on(‘first-instance-ack’)

Unofficial

Registers a listener for the first-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): this

Parameters:

ParameterTypeDescription
event"first-instance-ack"The event name.
listener(event: ElectronEvent, additionalData: unknown) => voidThe event handler.

Returns: thisThis ElectronApp instance.