DesktopBadge record

Namespace Runic.Platform in Runic.Platform 0.23.0

public sealed record DesktopBadge : IEquatable<DesktopBadge>

Inherits or implements IEquatable.

A badge on the window's taskbar button or the application's Dock icon: a count, or a dot that asks for attention.

Remarks

Set it through IWindowPlatformServices.SetBadgeAsync. Windows draws it as an overlay on the window's taskbar button, macOS as the Dock icon's badge, and Linux docks that read the Unity launcher API, such as KDE Plasma and Ubuntu's dock, as the count on the launcher.

Constructors

DesktopBadge

public DesktopBadge()

No documentation.

Properties

Count

public int? Count { get; init; }

The count, at least 1; more than 99 shows 99+. null, the default, shows a dot.

Description

public string? Description { get; init; }

What the badge means, for screen readers, such as "3 unread messages"; Windows reads it with the taskbar button.