public static class DesktopOpenRequests Open requests for hosts and platforms that cannot provide them, and the parser for launch arguments.
Methods
FromLaunch
public static DesktopOpenRequest? FromLaunch(ApplicationLaunch launch, DesktopOpenOptions options) The files and URLs among a launch's arguments: the desktop passes them as arguments on Linux and Windows.
Returns
The request, or null when no argument is a registered URL or web link or, with DesktopOpenOptions.IncludeFiles, a file.
Remarks
An argument is a URL when it is an absolute URI with one of DesktopOpenOptions.UrlSchemes, or an https URL of one of DesktopOpenOptions.WebLinkHosts with the default port and no user information. With DesktopOpenOptions.IncludeFiles, an argument is a file when it is a file: URI, or a path of an existing file or directory that does not start with -; a relative path is resolved against the launch's working directory. Every other argument, such as an option, is ignored and stays with the application's own parser. A URL is never read as a path. At most 1024 items of at most 32 KiB each are taken.
Unavailable
public static IDesktopOpenRequests Unavailable(PlatformUnavailableReason reason) Creates open requests that never raise IDesktopOpenRequests.Opened.
Remarks
The reason documents why; nothing reports it, because no request ever arrives.