public sealed record DesktopPresentationAvailability : IEquatable<DesktopPresentationAvailability> Describes whether one concrete presentation host can be used by the current process.
Parameters
BrowserThe presentation: an installed browser or
BrowserKind.Embedded.IsAvailableWhether the presentation can open.
ExecutablePathThe browser executable, or
nullfor the embedded WebView or a missing browser.CapabilitiesThe window operations the presentation supports.
DiagnosticsEvery 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
BrowserThe presentation: an installed browser or
BrowserKind.Embedded.IsAvailableWhether the presentation can open.
ExecutablePathThe browser executable, or
nullfor the embedded WebView or a missing browser.CapabilitiesThe window operations the presentation supports.
DiagnosticsEvery 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.