> For the complete documentation index, see [llms.txt](https://krypt0nn.gitbook.io/empathize/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://krypt0nn.gitbook.io/empathize/api/os-api/notification.md).

# Notification

## NotificationOptions

| Property    | Type                          | Description                                         |
| ----------- | ----------------------------- | --------------------------------------------------- |
| title       | string                        | Notification title                                  |
| body        | string                        | Notification body                                   |
| icon?       | string                        | Icon name or path                                   |
| duration?   | number                        | Number of seconds this notification will be visible |
| importance? | 'low', 'normal' or 'critical' | Importance of the notification                      |

## Notification class

### Notification.show(options)

```typescript
import { Notification } from '@empathize/framework';

Notification.show({
    title: 'Example title',
    body: 'Example notification body',
    icon: '/absolute/path/to/my/icon.png'
});
```
