public sealed record DesktopOpenOptions : IEquatable<DesktopOpenOptions> The URL schemes and files the application registered with the desktop.
Parameters
UrlSchemesURL schemes, such as
org.example.notes, as registered in the desktop entry,Info.plistor the Windows registry. Compared without regard to case.
Remarks
Only registered schemes are delivered, so an argument that merely looks like a URL is left to the application.
Constructors
DesktopOpenOptions
public DesktopOpenOptions(ImmutableArray<string> UrlSchemes) The URL schemes and files the application registered with the desktop.
Parameters
UrlSchemesURL schemes, such as
org.example.notes, as registered in the desktop entry,Info.plistor the Windows registry. Compared without regard to case.
Remarks
Only registered schemes are delivered, so an argument that merely looks like a URL is left to the application.
Properties
IncludeFiles
public bool IncludeFiles { get; init; } Whether the application registered file types, so that file paths and file: URIs are delivered.
UrlSchemes
public ImmutableArray<string> UrlSchemes { get; init; } URL schemes, such as org.example.notes, as registered in the desktop entry, Info.plist or the Windows registry. Compared without regard to case.
WebLinkHosts
public ImmutableArray<string> WebLinkHosts { get; init; } Hosts, such as notes.example.org, whose https links the application opens: macOS universal links and Windows app URI handlers. Empty by default. Compared without regard to case; no wildcards.
Remarks
A link is delivered only when its host is one of these exactly, with the default port and no user name or password; every other https URL stays with the application's own parser. The association itself is the application's: an Associated Domains entitlement and an apple-app-site-association file on macOS, a uap3:AppUriHandler and a windows-app-web-link file on Windows.