# IOConnectNotificationOptions

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

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

Options for raising an io.Connect notification.

## Properties

- **`actions`** (`NotificationAction[]`, optional)
  Array of objects describing notification actions. The notification actions will be displayed as buttons in the notification.
- **`badge`** (`string`, optional)
  URL of an image to represent the notification as a badge.
- **`body`** (`string`, optional)
  Notification body text.
- **`clickInterop`** (`InteropActionSettings`, optional)
  Settings for invoking an Interop method when the notification is clicked.
- **`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.
- **`id`** (`string`, optional)
  Id for 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.
- **`panelExpiry`** (`number`, optional)
  Interval in seconds after which the notification will be removed from the Notification Panel.
- **`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.
- **`severity`** (`"Low" | "Medium" | "High" | "Critical" | "None"`, optional)
  Severity of the notification.
- **`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.
- **`source`** (`string`, optional)
  Can be used for overwriting the name of the actual notification source.
- **`state`** (`State`, optional) default: `"Active"`
  Notification state.
- **`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).
- **`title`** (`string`, required)
  Title for the notification.
- **`toastExpiry`** (`number`, optional)
  Interval in seconds after which the notification toast will be hidden.
- **`type`** (`"Notification" | "Alert"`, optional)
  Type of the notification. `"Notification"` is usually a general non-urgent notification, while `"Alert"` is an urgent one.
- **`vibrate`** (`number[]`, optional)
  Vibration pattern for the vibration hardware of the device to emit with the notification. If specified, `silent` must not be `true`.

## Related types

- [InteropActionSettings](https://docs.interop.io/desktop/reference/javascript/notifications/interopactionsettings/index.md)
- [Notification](https://docs.interop.io/desktop/reference/javascript/notifications/notification/index.md)
- [NotificationAction](https://docs.interop.io/desktop/reference/javascript/notifications/notificationaction/index.md)
- [State](https://docs.interop.io/desktop/reference/javascript/notifications/state/index.md)
