# Notification class

Namespace: [Eto.Forms](https://eto.picoe.ca/api/namespace/eto.forms.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
[Handler(Notification.IHandler)]
public class Notification : Widget
```

System toast notification.

**Remarks:** Create a new instance of this class for each notification sent as they are not reusable. The ID and [Notification.UserData](https://eto.picoe.ca/api/type/eto.forms.notification/userdata.md) should be used to specify what action would happen when the user clicks the notification (if applicable). All notifications should be handled by the [Application.NotificationActivated](https://eto.picoe.ca/api/type/eto.forms.application/notificationactivated.md) event. Note that in some platforms (e.g. macOS), the application may have a notification clicked when the application isn't even started. In this case, the application is started an then sent the notification to the [Application.NotificationActivated](https://eto.picoe.ca/api/type/eto.forms.application/notificationactivated.md) immediately.

## Fields

- [ActivatedEvent](https://eto.picoe.ca/api/type/eto.forms.notification/activatedevent.md): (static, obsolete) Event identifier for handlers when attaching the [Notification.Activated](https://eto.picoe.ca/api/type/eto.forms.notification/activated.md) event.

## Properties

- [ContentImage](https://eto.picoe.ca/api/type/eto.forms.notification/contentimage.md): Gets or sets the content image of the notification
- [Icon](https://eto.picoe.ca/api/type/eto.forms.notification/icon.md): (obsolete) Gets or sets the icon for the [Notification](https://eto.picoe.ca/api/type/eto.forms.notification.md).
- [Message](https://eto.picoe.ca/api/type/eto.forms.notification/message.md): Gets or sets the message of the [Notification](https://eto.picoe.ca/api/type/eto.forms.notification.md).
- [RequiresTrayIndicator](https://eto.picoe.ca/api/type/eto.forms.notification/requirestrayindicator.md): Gets a value indicating whether this [Notification](https://eto.picoe.ca/api/type/eto.forms.notification.md) requires a [TrayIndicator](https://eto.picoe.ca/api/type/eto.forms.trayindicator.md) to be displayed.
- [Title](https://eto.picoe.ca/api/type/eto.forms.notification/title.md): Gets or sets the title for the [Notification](https://eto.picoe.ca/api/type/eto.forms.notification.md).
- [UserData](https://eto.picoe.ca/api/type/eto.forms.notification/userdata.md): Gets or sets user data for the notification.

## Methods

- [OnActivated](https://eto.picoe.ca/api/type/eto.forms.notification/onactivated.md): (obsolete) Raises the [Notification.Activated](https://eto.picoe.ca/api/type/eto.forms.notification/activated.md) event.
- [Show](https://eto.picoe.ca/api/type/eto.forms.notification/show.md): Shows the current notification.

## Events

- [Activated](https://eto.picoe.ca/api/type/eto.forms.notification/activated.md): (obsolete) Event to handle when the user left click the [Notification](https://eto.picoe.ca/api/type/eto.forms.notification.md).

## Inherited Members

- From [Widget](https://eto.picoe.ca/api/type/eto.widget.md): [ControlObject](https://eto.picoe.ca/api/type/eto.widget/controlobject.md), [Handler](https://eto.picoe.ca/api/type/eto.widget/handler.md), [ID](https://eto.picoe.ca/api/type/eto.widget/id.md), [IsDisposed](https://eto.picoe.ca/api/type/eto.widget/isdisposed.md), [NativeHandle](https://eto.picoe.ca/api/type/eto.widget/nativehandle.md), [Platform](https://eto.picoe.ca/api/type/eto.widget/platform.md), [Properties](https://eto.picoe.ca/api/type/eto.widget/properties.md), [Style](https://eto.picoe.ca/api/type/eto.widget/style.md), [StyleChanged](https://eto.picoe.ca/api/type/eto.widget/stylechanged.md), [Dispose](https://eto.picoe.ca/api/type/eto.widget/dispose.md), [GetCallback](https://eto.picoe.ca/api/type/eto.widget/getcallback.md), [Initialize](https://eto.picoe.ca/api/type/eto.widget/initialize.md), [OnStyleChanged](https://eto.picoe.ca/api/type/eto.widget/onstylechanged.md), [ToString](https://eto.picoe.ca/api/type/eto.widget/tostring.md)
