Class FreeDesktopNotifier
Notifications on Linux desktops through the session bus, as GNOME, KDE and most others show them.
Implements
Inherited Members
Namespace: Uniform.Chat.Desktop.Notifications
Assembly: Uniform.Chat.dll
Syntax
public sealed class FreeDesktopNotifier : INotifier
Remarks
Calls org.freedesktop.Notifications.Notify. A message in the same chat replaces the previous notification instead of stacking.
Methods
| Edit this page View SourceShowAsync(string, string, CancellationToken)
Show a notification; fails when no notification service runs.
Declaration
public Task ShowAsync(string title, string body, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title | |
| string | body | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |