notification
Create OS desktop notifications.
Functions
notification.create
notification.create(options: NotificationOptions): Promise<boolean>
Create and display notification.
Example
Types
notification.NotificationOptions
Data of the notification.
Property | Type | Description |
---|---|---|
title | string | The notification’s title |
body | ?string | The notification’s body |
silent | ?boolean | Whether or not to suppress the OS notification noise when showing the notification |