Share via


Launcher.LaunchUriForResultsAsync Method

Definition

Overloads

LaunchUriForResultsAsync(Uri, LauncherOptions)

Asynchronously starts the default app associated with the URI scheme name for the specified URI, using the specified options.

LaunchUriForResultsAsync(Uri, LauncherOptions, ValueSet)

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

LaunchUriForResultsAsync(Uri, LauncherOptions)

Asynchronously starts the default app associated with the URI scheme name for the specified URI, using the specified options.

[Windows.Foundation.Metadata.Overload("LaunchUriForResultsAsync")]
public static IAsyncOperation<LaunchUriResult> LaunchUriForResultsAsync(System.Uri uri, LauncherOptions options);

Parameters

uri
Uri

The Uri to launch.

options
LauncherOptions

The launch options.

Returns

When this method completes, it returns the results of the launch.

Attributes

Remarks

Launching an app for results allows you to launch an app from another app and exchange data between the two.

This API must be called from within an ASTA thread (also known as a UI thread).

When calling this method, the options parameter must contain a valid value for LauncherOptions.TargetApplicationPackageFamilyName.

See also

Applies to

WinRT Build 26100 and other versions
Product Versions
WinRT Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100

LaunchUriForResultsAsync(Uri, LauncherOptions, ValueSet)

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

[Windows.Foundation.Metadata.Overload("LaunchUriForResultsWithDataAsync")]
public static IAsyncOperation<LaunchUriResult> LaunchUriForResultsAsync(System.Uri uri, LauncherOptions options, ValueSet inputData);

Parameters

uri
Uri

The Uri to launch.

options
LauncherOptions

The launch options.

inputData
ValueSet

The data to send to the launched app.

Returns

When this method completes, it returns the results of the launch.

Attributes

Remarks

Launching an app for results allows you to launch an app from another app and exchange data between the two.

This API must be called from within an ASTA thread (also known as a UI thread).

When calling this method, the options parameter must contain a valid value for LauncherOptions.TargetApplicationPackageFamilyName.

See also

Applies to

WinRT Build 26100 and other versions
Product Versions
WinRT Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100