Table of Contents

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

TimeSpan

Message

Gets the notification message.

string? Message { get; }

Property Value

string

OnClick

Gets an Action to be run when the notification is clicked.

Action? OnClick { get; }

Property Value

Action

OnClose

Gets an Action to be run when the notification is closed.

Action? OnClose { get; }

Property Value

Action

Title

Gets the Title of the notification.

string? Title { get; }

Property Value

string

Type

Gets the NotificationType of the notification.

NotificationType Type { get; }

Property Value

NotificationType