Skip to content

ElectronApp.on('ready') method

ElectronApp › on(‘ready’)

Unofficial

Registers a listener for the ready event.

Emitted once, when Electron has finished initializing.

Signature:

on($event: "ready", listener: ($event: ElectronEvent, launchInfo: ElectronNotificationResponse | Record<string, unknown>) => void): this

Parameters:

ParameterTypeDescription
$event"ready"
listener($event: ElectronEvent, launchInfo: ElectronNotificationResponse | Record<string, unknown>) => voidThe event handler.

Returns: this — This ElectronApp instance.