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'
});

Last updated