Click or drag to resize

Notification Class

System toast notification.
Inheritance Hierarchy

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public class Notification : Widget

The Notification type exposes the following members.

Constructors
  NameDescription
Public methodNotification
Initializes a new instance of the Notification class
Top
Properties
  NameDescription
Public propertyContentImage
Gets or sets the content image of the notification
Public propertyIcon Obsolete.
Gets or sets the icon for the Notification.
Public propertyMessage
Gets or sets the message of the Notification.
Public propertyRequiresTrayIndicator
Gets a value indicating whether this Notification requires a TrayIndicator to be displayed.
Public propertyTitle
Gets or sets the title for the Notification.
Public propertyUserData
Gets or sets user data for the notification.
Top
Methods
  NameDescription
Protected methodOnActivated Obsolete.
Raises the Activated event.
Public methodShow
Shows the current notification.
Top
Events
  NameDescription
Public eventActivated Obsolete.
Event to handle when the user left click the Notification.
Top
Fields
  NameDescription
Public fieldStatic memberActivatedEvent Obsolete.
Event identifier for handlers when attaching the Activated event.
Top
Remarks
Create a new instance of this class for each notification sent as they are not reusable. The ID and UserData should be used to specify what action would happen when the user clicks the notification (if applicable). All notifications should be handled by the NotificationActivated 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 NotificationActivated immediately.
See Also