OpenFin Workspace API
    Preparing search index...

    Function update

    • Updates an existing notification. Requires id of original Notification and one of:

      • buttons
      • customData
      • Template

      The updated Notification will then show in Notification Centre and in the Toast stack if not expired.

      Example:

      import {update} from 'openfin-notifications';

      update({
      id: uniqueNotificationId,
      body: 'i am an update! - ' + Date.now().toString(),
      template: 'markdown',
      });

      Type Parameters

      Parameters

      • options: T

      Returns Promise<
          Readonly<
              Required<
                  | Omit<TemplateMarkdown, "buttons">
                  | Omit<TemplateList, "buttons">
                  | Omit<TemplateCustom, "buttons">,
              > & { buttons: readonly Required<ButtonOptions>[] },
          >,
      >