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:

Parameter Type Description
event "ready" The event name.
listener (event: ElectronEvent, launchInfo: ElectronNotificationResponse | Record<string, unknown>) => void The event handler.

Returns: thisThis ElectronApp instance.