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:

Parameter Type Description
event "reply" The event name.
listener (event: ElectronEvent, reply: string) => void The event handler receiving the event and the string the user entered into the inline reply field.

Returns: thisThis notification instance.