Windows.System.Launcher.LaunchUriAsync

July 18, 2024 ยท View on GitHub

-description

Starts the default app associated with the URI scheme name for the specified URI, using the specified options and input data.

-parameters

-param uri

The URI.

-param options

The launch options for the app.

Important

The TargetApplicationPackageFamilyName property of the options parameter, while sometimes optional, is required for this overload of the LaunchUriAsync method.

-param inputData

The input data for the app.

Important

The amount of data that can be transferred must not exceed 100 KB.

-returns

Returns true if the default app for the URI scheme was launched; false otherwise.

-remarks

Unless you are calling this API from a Windows desktop application, this API must be called from within an ASTA thread (also known as the UI thread).

This API may also be called from a Windows desktop application.

This API launches the default app for the scheme whether it be a Universal Windows Platform (UWP) app or Windows desktop application.

-examples

-see-also

LaunchUriAsync(Uri), LaunchUriAsync(Uri, LauncherOptions)