Skip to main content

INotification Interface

Not client implementable.

Note: This interface is not client implementable. You need to enable PrivateApi if you want to implement this interface.

Represents a notification that can be shown in a window or by the host operating system.

Definition

Namespace: Avalonia.Controls.Notifications
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

[NotClientImplementableAttribute]
public interface INotification
View Source

Properties

ExpirationGets the expiration time of the notification after which it will automatically close. If the value is Zero then the notification will remain open until the user closes it.
MessageGets the notification message.
OnClickGets an Action to be run when the notification is clicked.
OnCloseGets an Action to be run when the notification is closed.
TitleGets the Title of the notification.
TypeGets the NotificationType of the notification.

See Also

Reference

Avalonia.Controls.Notifications Namespace