Share via


DialApp.RequestLaunchAsync(String) Method

Definition

Initiates the launching of the app on the remote device. When this method is called, the DialDevice is paired if necessary, the user is prompted to allow access to the device, connection is established, app existence is validated on the device, and finally the application is launched with the provided argument.

public:
 virtual IAsyncOperation<DialAppLaunchResult> ^ RequestLaunchAsync(Platform::String ^ appArgument) = RequestLaunchAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<DialAppLaunchResult> RequestLaunchAsync(winrt::hstring const& appArgument);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<DialAppLaunchResult> RequestLaunchAsync(string appArgument);
function requestLaunchAsync(appArgument)
Public Function RequestLaunchAsync (appArgument As String) As IAsyncOperation(Of DialAppLaunchResult)

Parameters

appArgument
String

Platform::String

winrt::hstring

Optional.

Returns

Indicates the result of attempting to launch the app.

Attributes

Remarks

This method must be called from the UI thread or an exception will be thrown. To dispatch the call to the UI thread from another thread, you can use CoreDispatcher.RunAsync.

Applies to

See also