DesktopPresentationPreflight record

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

public sealed record DesktopPresentationPreflight : IEquatable<DesktopPresentationPreflight>

Inherits or implements IEquatable.

Describes whether a requested presentation can be opened without changing its declared fallback policy.

Constructors

DesktopPresentationPreflight

public DesktopPresentationPreflight(BrowserKind RequestedBrowser, DesktopPresentationPolicy PresentationPolicy, DesktopPresentationAvailability Preferred, DesktopPresentationAvailability? Fallback)

Describes whether a requested presentation can be opened without changing its declared fallback policy.

Properties

Diagnostic

public DesktopDiagnostic? Diagnostic { get; }

Gets the safe actionable diagnostic when no declared presentation path is available.

Diagnostics

public IReadOnlyList<DesktopDiagnostic> Diagnostics { get; }

Gets every missing prerequisite of the preferred presentation and its declared fallback when no declared presentation path is available. DesktopPresentationPreflight.Diagnostic is the first entry.

Fallback

public DesktopPresentationAvailability? Fallback { get; init; }

No documentation.

IsAvailable

public bool IsAvailable { get; }

Gets whether the declared policy has an available presentation path.

IsPreferredAvailable

public bool IsPreferredAvailable { get; }

Gets whether the preferred presentation is available without fallback.

OptionDiagnostics

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

Gets one diagnostic per requested window option or permission grant that the preferred presentation, or its declared fallback, rejects (DesktopDiagnosticSeverity.Error) or ignores (DesktopDiagnosticSeverity.Warning). DesktopDiagnostic.Option names the option.

Preferred

public DesktopPresentationAvailability Preferred { get; init; }

No documentation.

PresentationPolicy

public DesktopPresentationPolicy PresentationPolicy { get; init; }

No documentation.

RequestedBrowser

public BrowserKind RequestedBrowser { get; init; }

No documentation.

WouldFallBack

public bool WouldFallBack { get; }

Gets whether opening the request would use its declared fallback.