Class: Notification

Notification

A Notification object represents a window on OpenFin Runtime which is shown briefly to the user on the bottom-right corner of the primary monitor. A notification is typically used to alert the user of some important event which requires his or her attention. Notifications are a child or your application that are controlled by the runtime.

Constructor

new Notification()

Methods

(async) close() → {Promise.<void>}

Closes the notification

Tutorials:
Returns:
Type
Promise.<void>

(async) sendMessage(message) → {Promise.<void>}

Sends a message to the notification.

Parameters:
Name Type Description
message any

The message to be sent to the notification. Can be either a primitive data type (string, number, or boolean) or composite data type (object, array) that is composed of other primitive or composite data types

Tutorials:
Returns:
Type
Promise.<void>

(async) show() → {Promise.<void>}

Invoked when the notification is shown

Tutorials:
Returns:
Type
Promise.<void>