INotification Interface

Summary

Represents a notification that can be shown in a window or by the host operating system.
Namespace
Avalonia.Controls.Notifications
Implementing Types
graph BT Type["INotification"] class Type type-node Implementing0["Notification"]-.->Type click Implementing0 "/api/Avalonia.Controls.Notifications/Notification"

Syntax

public interface INotification

Properties

Name Value Summary
Expiration TimeSpan
Gets the expiration time of the notification after which it will automatically close. If the value is System.TimeSpan.Zero then the notification will remain open until the user closes it.
Message string
Gets the notification message.
OnClick Action
Gets an Action to be run when the notification is clicked.
OnClose Action
Gets an Action to be run when the notification is closed.
Title string
Gets the Title of the notification.
Type NotificationType
Gets the NotificationType of the notification.