public sealed record DesktopPresentationPreflight : IEquatable<DesktopPresentationPreflight> 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.
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.
PresentationPolicy
public DesktopPresentationPolicy PresentationPolicy { get; init; } No documentation.
WouldFallBack
public bool WouldFallBack { get; } Gets whether opening the request would use its declared fallback.