VoiceCommandResponse.CreateResponseForPrompt Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateResponseForPrompt(VoiceCommandUserMessage, VoiceCommandUserMessage) |
Creates a VoiceCommandResponse object used in calls to RequestConfirmationAsync or RequestDisambiguationAsync. |
CreateResponseForPrompt(VoiceCommandUserMessage, VoiceCommandUserMessage, IIterable<VoiceCommandContentTile>) |
Creates a VoiceCommandResponse object used in calls to RequestConfirmationAsync or RequestDisambiguationAsync. |
CreateResponseForPrompt(VoiceCommandUserMessage, VoiceCommandUserMessage)
Creates a VoiceCommandResponse object used in calls to RequestConfirmationAsync or RequestDisambiguationAsync.
public:
static VoiceCommandResponse ^ CreateResponseForPrompt(VoiceCommandUserMessage ^ message, VoiceCommandUserMessage ^ repeatMessage);
/// [Windows.Foundation.Metadata.Overload("CreateResponseForPrompt")]
static VoiceCommandResponse CreateResponseForPrompt(VoiceCommandUserMessage const& message, VoiceCommandUserMessage const& repeatMessage);
[Windows.Foundation.Metadata.Overload("CreateResponseForPrompt")]
public static VoiceCommandResponse CreateResponseForPrompt(VoiceCommandUserMessage message, VoiceCommandUserMessage repeatMessage);
function createResponseForPrompt(message, repeatMessage)
Public Shared Function CreateResponseForPrompt (message As VoiceCommandUserMessage, repeatMessage As VoiceCommandUserMessage) As VoiceCommandResponse
Parameters
- message
- VoiceCommandUserMessage
The initial message that is spoken by Cortana and shown on the Cortana canvas. This message should be one of the following:
- 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).
- repeatMessage
- VoiceCommandUserMessage
The secondary message that is spoken by Cortana and shown on the Cortana canvas, if a response was not understood. This message should be both a variation of the first message and one of the following:
- 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).
Returns
The response from the background app service for progress, completion, confirmation, or disambiguation screens displayed on the Cortana canvas.
- Attributes
See also
- CreateResponseForPrompt(VoiceCommandUserMessage, VoiceCommandUserMessage, IIterable<VoiceCommandContentTile>)
- elements and attributes v1.2
- Cortana interactions
- Cortana design guidelines
- Cortana voice command sample
Applies to
CreateResponseForPrompt(VoiceCommandUserMessage, VoiceCommandUserMessage, IIterable<VoiceCommandContentTile>)
Creates a VoiceCommandResponse object used in calls to RequestConfirmationAsync or RequestDisambiguationAsync.
public:
static VoiceCommandResponse ^ CreateResponseForPrompt(VoiceCommandUserMessage ^ message, VoiceCommandUserMessage ^ repeatMessage, IIterable<VoiceCommandContentTile ^> ^ contentTiles);
/// [Windows.Foundation.Metadata.Overload("CreateResponseForPromptWithTiles")]
static VoiceCommandResponse CreateResponseForPrompt(VoiceCommandUserMessage const& message, VoiceCommandUserMessage const& repeatMessage, IIterable<VoiceCommandContentTile> const& contentTiles);
[Windows.Foundation.Metadata.Overload("CreateResponseForPromptWithTiles")]
public static VoiceCommandResponse CreateResponseForPrompt(VoiceCommandUserMessage message, VoiceCommandUserMessage repeatMessage, IEnumerable<VoiceCommandContentTile> contentTiles);
function createResponseForPrompt(message, repeatMessage, contentTiles)
Public Shared Function CreateResponseForPrompt (message As VoiceCommandUserMessage, repeatMessage As VoiceCommandUserMessage, contentTiles As IEnumerable(Of VoiceCommandContentTile)) As VoiceCommandResponse
Parameters
- message
- VoiceCommandUserMessage
The initial message that is spoken by Cortana and shown on the Cortana canvas. This message should be one of the following:
- 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).
- repeatMessage
- VoiceCommandUserMessage
The secondary message that is spoken by Cortana and shown on the Cortana canvas, if a response was not understood. This message should be both a variation of the first message and one of the following:
- 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).
- contentTiles
The collection of assets, containing image and text data, shown on the Cortana canvas.
Returns
The response from the background app service for progress, completion, confirmation, or disambiguation screens displayed on the Cortana canvas.
- Attributes
See also
- CreateResponseForPrompt(VoiceCommandUserMessage, VoiceCommandUserMessage)
- elements and attributes v1.2
- Cortana interactions
- Cortana design guidelines
- Cortana voice command sample