Skip to content

A C# library for sending native system notifications across multiple desktop platforms. Supports Windows, Linux, and macOS.

License

Notifications You must be signed in to change notification settings

Jeric-X/NativeNotification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NativeNotification

NuGet Version

A C# library for sending native system notifications across multiple desktop platforms. Supports Windows (toast notifications), Linux (freedesktop.org), and macOS (NSUserNotification).

Setup

dotnet add package NativeNotification

Quick Start

var manager = ManagerFactory.GetNotificationManager(new NativeNotificationOption() { AppName = "AppName" });
var notification = manager.Create();
notification.Title = "Title";
notification.Message = "Hello Message.";
notification.Buttons.Add(new ActionButton("Button Text", () => Console.WriteLine("button clicked.")));
notification.Show(new NotificationDeliverOption() { Duration = TimeSpan.FromSeconds(10) });

Platform Support

Windows Linux macOS
TFM requirements net8.0-windows10.0.17763.0 net8.0 net8.0-macos
Title
Message
Duration
Images
Progress Bars ❌️ ❌️
Notification Actions
Clear Delivered Notifications
Get Delivered Notifications
Replace Notifications

Dependencies

Microsoft.Toolkit.Uwp.Notifications
Tmds.DBus

About

A C# library for sending native system notifications across multiple desktop platforms. Supports Windows, Linux, and macOS.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages