DesktopPresentationAvailability record

Namespace Runic.Desktop · Runic.Desktop 0.7.0-preview.5

public sealed record DesktopPresentationAvailability : IEquatable<DesktopPresentationAvailability>

Inherits or implements IEquatable.

Describes whether one concrete presentation host can be used by the current process.

Constructors

DesktopPresentationAvailability

public DesktopPresentationAvailability(BrowserKind Browser, bool IsAvailable, string? ExecutablePath, DesktopWindowCapabilities Capabilities, DesktopDiagnostic? Diagnostic)

Describes whether one concrete presentation host can be used by the current process.

Properties

Browser

public BrowserKind Browser { get; init; }

No documentation.

Capabilities

public DesktopWindowCapabilities Capabilities { get; init; }

No documentation.

Diagnostic

public DesktopDiagnostic? Diagnostic { get; init; }

Gets the first missing prerequisite of an unavailable presentation, or null.

Remarks

Always the first entry of DesktopPresentationAvailability.Diagnostics. Setting it, including through a with expression, replaces DesktopPresentationAvailability.Diagnostics with this diagnostic alone, or with none.

Diagnostics

public IReadOnlyList<DesktopDiagnostic> Diagnostics { get; init; }

Gets every missing prerequisite of an unavailable presentation, not only the first.

Remarks

For example, a GTK4 selection without its provider reports the provider and each missing native library. DesktopPresentationAvailability.Diagnostic is the first entry; setting this list after it replaces it.

ExecutablePath

public string? ExecutablePath { get; init; }

No documentation.

IsAvailable

public bool IsAvailable { get; init; }

No documentation.

Methods

Equals

public bool Equals(DesktopPresentationAvailability? other)

Compares every member, and the diagnostics by value and order.

GetHashCode

public override int GetHashCode()

Inherits documentation from Object.GetHashCode.