# NotificationDefinition

**Kind**: interface | **Module**: [Notifications](https://docs.interop.io/desktop/reference/javascript/notifications/index.md)

**Source**: https://docs.interop.io/desktop/reference/javascript/notifications/notificationdefinition/index.html

Describes a web notification. For more details, see the web [`Notification`](https://developer.mozilla.org/en-US/docs/Web/API/Notification) interface.

## Properties

- **`badge`** (`string`, optional)
  URL of an image to represent the notification as a badge.
- **`body`** (`string`, optional)
  Notification body text.
- **`data`** (`any`, optional)
  Arbitrary data you have associated with the notification.
- **`dir`** (`"auto" | "ltr" | "rtl"`, optional) default: `"auto"`
  The direction in which to display the notification.
- **`icon`** (`string`, optional)
  URL of an icon to be displayed in the notification.
- **`image`** (`string`, optional)
  URL of an image to be displayed in the notification.
- **`lang`** (`string`, optional)
  [Language code](https://www.sitepoint.com/iso-2-letter-language-codes/) of the notification.
- **`renotify`** (`boolean`, optional) default: `false`
  If `true`, will renotify the user if a new notification replaces an old one. In this case, `tag` must also be set.
- **`requireInteraction`** (`boolean`, optional) default: `false`
  If `true`, the notification will remain active and won't be closed until the user clicks on it or dismisses it.
- **`silent`** (`boolean`, optional) default: `false`
  If `true`, the notification will be silent (no sound or vibration) despite the device settings. In this case, `vibrate` must not be set.
- **`tag`** (`string`, optional)
  ID tag of the notification.
- **`timestamp`** (`number`, optional)
  Specifies the time at which the notification is created or is applicable (past, present or future).
- **`vibrate`** (`number[]`, optional)
  Vibration pattern for the vibration hardware of the device to emit with the notification. If specified, `silent` must not be `true`.
