Notificationinterface
Properties (28)
| Property | Type | Default | Required | Description |
|---|---|---|---|---|
| actions⚓︎ | NotificationAction[] | x | Array of objects describing the available notification actions. |
|
| badge⚓︎ | string | x | x | x |
| body⚓︎ | string | x | x | x |
| clickInterop⚓︎ | InteropActionSettings | x | x | Set to make the notification click invoke an interop method with specific arguments |
| close⚓︎ | () => void | x | Closes the notification. |
|
| data⚓︎ | any | x | x | x |
| dir⚓︎ | "auto" | "ltr" | "rtl" | x | x | x |
| focusPlatformOnDefaultClick⚓︎ | boolean | x | x | io.Connect Browser* only. If set to |
| icon⚓︎ | string | x | x | x |
| id⚓︎ | string | x | x | |
| image⚓︎ | string | x | x | x |
| lang⚓︎ | string | x | x | x |
| onaction⚓︎ | (event: ActionEvent) => void | x | Notifies when a notification action has been clicked. |
|
| onclick⚓︎ | () => any | x | x | |
| onclose⚓︎ | (() => void) | x | Notifies when the notification is closed. |
|
| onerror⚓︎ | (event: ErrorEvent) => void | x | Notifies when there is a notification error. |
|
| onshow⚓︎ | () => any | x | x | |
| renotify⚓︎ | boolean | x | x | x |
| requireInteraction⚓︎ | boolean | x | x | x |
| severity⚓︎ | "Low" | "Medium" | "High" | "Critical" | "None" | x | x | Severity of the alert |
| showInPanel⚓︎ | boolean | x | x | Indicates whether the notification should appear in notification panels. Defaults to |
| showToast⚓︎ | boolean | x | x | Indicates whether a native toast will be shown or not. Defaults to |
| silent⚓︎ | boolean | x | x | x |
| state⚓︎ | State | x | x | Notification state. Defaults to |
| tag⚓︎ | string | x | x | x |
| timestamp⚓︎ | number | x | x | x |
| title⚓︎ | string | x | The title of the notification |
|
| vibrate⚓︎ | number[] | x | x | x |