Skip to content

ElectronNotification.on('reply') method

ElectronNotification › on(‘reply’)

Unofficial

Registers an event listener that is invoked when the user clicks the "Reply" button on a notification with hasReply: true. darwin only.

Signature:

on($event: "reply", listener: ($event: ElectronEvent, reply: string) => void): this

Parameters:

ParameterTypeDescription
$event"reply"
listener($event: ElectronEvent, reply: string) => voidThe event handler receiving the event and the string the user entered into the inline reply field.

Returns: this — This notification instance.