• Creates a new notification.

    The notification will appear in the Notification Center and as a toast if the Center is not visible.

    If a notification is created with an id of an already existing notification, the existing notification will be recreated with the new content.

    import {create} from 'openfin-notifications';

    create({
    id: 'uniqueNotificationId',
    title: 'Notification Title',
    body: 'Text to display within the notification body',
    icon: 'https://openfin.co/favicon.ico'
    });

    Type Parameters

    Parameters

    • options: T

      Notification configuration options.

    Returns Promise<Notification<T>>

Generated using TypeDoc