Interface INotification
- Namespace
- Avalonia.Controls.Notifications
- Assembly
- Avalonia.Controls.dll
Represents a notification that can be shown in a window or by the host operating system.
[NotClientImplementable]
public interface INotification
Properties
Expiration
Gets 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.
TimeSpan Expiration { get; }
Property Value
Message
Gets the notification message.
string? Message { get; }
Property Value
OnClick
Gets an Action to be run when the notification is clicked.
Action? OnClick { get; }
Property Value
OnClose
Gets an Action to be run when the notification is closed.
Action? OnClose { get; }
Property Value
Title
Gets the Title of the notification.
string? Title { get; }
Property Value
Type
Gets the NotificationType of the notification.
NotificationType Type { get; }