DesktopProgress record

Namespace Runic.Platform in Runic.Platform 0.23.0

public sealed record DesktopProgress : IEquatable<DesktopProgress>

Inherits or implements IEquatable.

Progress shown on the window's taskbar button or the application's Dock icon.

Parameters

Value

How far the work is, from 0 to 1; null for work whose end is unknown.

Remarks

Set it through IWindowPlatformServices.SetProgressAsync, and clear it with null when the work ends.

Constructors

DesktopProgress

public DesktopProgress(double? Value)

Progress shown on the window's taskbar button or the application's Dock icon.

Parameters

Value

How far the work is, from 0 to 1; null for work whose end is unknown.

Remarks

Set it through IWindowPlatformServices.SetProgressAsync, and clear it with null when the work ends.

Properties

State

public DesktopProgressState State { get; init; }

Whether the work runs, is paused or failed; Windows colours the bar, macOS and Linux show DesktopProgressState.Normal.

Value

public double? Value { get; init; }

How far the work is, from 0 to 1; null for work whose end is unknown.