🚀
Empathize
  • Introduction
  • Installation
  • API
    • Paths API
      • Directories
      • Paths
    • Filesystem API
      • Filesystem
    • Windows API
      • Windows
    • OS API
      • Process
      • Tray
      • IPC
      • Notification
      • Archive
      • Package
    • Network API
      • fetch
      • Domain
      • Downloader
    • Async API
      • promisify
    • Meta classes
      • Cache
      • Configs
      • Debug
  • Building application
Powered by GitBook
On this page
  • NotificationOptions
  • Notification class
  • Notification.show(options)
  1. API
  2. OS API

Notification

NotificationOptions

Property
Type
Description

title

string

Notification title

body

string

Notification body

icon?

string

Icon name or path

duration?

number

Number of seconds this notification will be visible

importance?

'low', 'normal' or 'critical'

Importance of the notification

Notification class

Notification.show(options)

import { Notification } from '@empathize/framework';

Notification.show({
    title: 'Example title',
    body: 'Example notification body',
    icon: '/absolute/path/to/my/icon.png'
});
PreviousIPCNextArchive

Last updated 3 years ago