| -api-id | M:Windows.ApplicationModel.VoiceCommands.VoiceCommandResponse.CreateResponse(Windows.ApplicationModel.VoiceCommands.VoiceCommandUserMessage) |
|---|---|
| -api-type | winrt method |
Creates a VoiceCommandResponse object used in calls to ReportProgressAsync, ReportSuccessAsync or ReportFailureAsync.
The message that is spoken by Cortana and shown on the Cortana canvas. This message should be:
- An informative statement on progress, completion, and error screens (see ReportProgressAsync, ReportSuccessAsync, ReportFailureAsync).
- An unambiguous question that can be answered with either yes or no on confirmation screens (see RequestConfirmationAsync).
- A request for the user to select from the list of choices presented on disambiguation screens (see RequestDisambiguationAsync).
The response from the background app service for progress, completion, confirmation, or disambiguation screens displayed on the Cortana canvas.
CreateResponse(VoiceCommandUserMessage, IIterable(VoiceCommandContentTile)), elements and attributes v1.2, Cortana interactions, Cortana design guidelines, Cortana voice command sample