Share via


VoiceCommandServiceConnection.RequestAppLaunchAsync Method

Definition

Sends a response to Cortana indicating the command should be handled by the app in the foreground.

public:
 virtual IAsyncAction ^ RequestAppLaunchAsync(VoiceCommandResponse ^ response) = RequestAppLaunchAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction RequestAppLaunchAsync(VoiceCommandResponse const& response);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction RequestAppLaunchAsync(VoiceCommandResponse response);
function requestAppLaunchAsync(response)
Public Function RequestAppLaunchAsync (response As VoiceCommandResponse) As IAsyncAction

Parameters

response
VoiceCommandResponse

The response from a background app service for progress, confirmation, disambiguation, completion, or failure screens displayed on the Cortana canvas.

Returns

An asynchronous handler called when the operation is complete.

Attributes

Remarks

To enable deep linking to an app, declare the windows.personalAssistantLaunch extension in the Package.appxmanifest file of the app project.

An app is launched to the foreground through Uniform Resource Identifier (URI) activation using a Protocol contract. The app must override the OnActivated event and check for an ActivationKind of Protocol. See Handle URI activation for more info.

Cortana terminates the background app service and launches the app in foreground with the launch parameter provided by the app.

Applies to

See also