public interface IDesktopStatusIcon : IAsyncDisposable An application's icon in the desktop's status area, with or without an open window.
Methods
HideAsync
ValueTask<PlatformResult<PlatformUnit>> HideAsync(CancellationToken cancellationToken = default) Removes the icon until the next IDesktopStatusIcon.ShowAsync.
ShowAsync
ValueTask<PlatformResult<PlatformUnit>> ShowAsync(DesktopStatusIconState state, CancellationToken cancellationToken = default) Shows the icon or replaces what it shows.
Remarks
Success means a desktop status area accepted the icon. Without one, for example on GNOME without an AppIndicator extension, the result is Unavailable: the icon stays ready and appears when a status area starts, and again after the status area restarts, until it is hidden.
Events
Activated
event EventHandler<DesktopStatusIconActivation>? Activated Raised on a worker thread; dispatch window work through its presentation.