feat: add new Toast.

This commit is contained in:
Zhang Dian
2024-09-05 01:36:10 +08:00
parent 2b42760673
commit f0b23e1bdf
13 changed files with 858 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
using Avalonia.Metadata;
namespace Ursa.Controls;
/// <summary>
/// Represents a toast manager that can show arbitrary content.
/// Managed toast managers can show any content.
/// </summary>
/// <remarks>
/// Because toast managers of this type are implemented purely in managed code, they
/// can display arbitrary content, as opposed to toast managers which display toasts
/// using the host operating system's toast mechanism.
/// </remarks>
[NotClientImplementable]
public interface IManagedToastManager : IToastManager
{
/// <summary>
/// Shows a toast.
/// </summary>
/// <param name="content">The content to be displayed.</param>
void Show(object content);
}