DesktopPresentationAvailability record

Namespace Runic.Desktop in Runic.Desktop 0.23.0

public sealed record DesktopPresentationAvailability : IEquatable<DesktopPresentationAvailability>

Inherits or implements IEquatable.

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

Parameters

Browser

The presentation: an installed browser or BrowserKind.Embedded.

IsAvailable

Whether the presentation can open.

ExecutablePath

The browser executable, or null for the embedded WebView or a missing browser.

Capabilities

The window operations the presentation supports.

Diagnostics

Every missing prerequisite of an unavailable presentation; empty when it is available.

Constructors

DesktopPresentationAvailability

public DesktopPresentationAvailability(BrowserKind Browser, bool IsAvailable, string? ExecutablePath, DesktopWindowCapabilities Capabilities, IReadOnlyList<DesktopDiagnostic> Diagnostics)

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

Parameters

Browser

The presentation: an installed browser or BrowserKind.Embedded.

IsAvailable

Whether the presentation can open.

ExecutablePath

The browser executable, or null for the embedded WebView or a missing browser.

Capabilities

The window operations the presentation supports.

Diagnostics

Every missing prerequisite of an unavailable presentation; empty when it is available.

Properties

Browser

public BrowserKind Browser { get; init; }

The presentation: an installed browser or BrowserKind.Embedded.

Capabilities

public DesktopWindowCapabilities Capabilities { get; init; }

The window operations the presentation supports.

Diagnostics

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

Gets every missing prerequisite of an unavailable presentation, in the order a user can act on them.

Remarks

For example, a GTK4 selection without its provider reports the provider and each missing native library. The list is empty when the presentation is available.

ExecutablePath

public string? ExecutablePath { get; init; }

The browser executable, or null for the embedded WebView or a missing browser.

IsAvailable

public bool IsAvailable { get; init; }

Whether the presentation can open.

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.