Android APIs
public static final class

VoiceInteractionSession.ConfirmationRequest

extends VoiceInteractionSession.Request
java.lang.Object
   ↳ android.service.voice.VoiceInteractionSession.Request
     ↳ android.service.voice.VoiceInteractionSession.ConfirmationRequest

Class Overview

A request for confirmation from the user of an operation, as per VoiceInteractor.ConfirmationRequest.

Summary

Public Methods
CharSequence getPrompt()
This method was deprecated in API level 23. Prefer getVoicePrompt() which allows multiple voice prompts.
VoiceInteractor.Prompt getVoicePrompt()
Return the prompt informing the user of what will happen, as per VoiceInteractor.ConfirmationRequest.
void sendConfirmationResult(boolean confirmed, Bundle result)
Report that the voice interactor has confirmed the operation with the user, resulting in a call to VoiceInteractor.ConfirmationRequest.onConfirmationResult.
[Expand]
Inherited Methods
From class android.service.voice.VoiceInteractionSession.Request
From class java.lang.Object

Public Methods

public CharSequence getPrompt ()

Added in API level 23

This method was deprecated in API level 23.
Prefer getVoicePrompt() which allows multiple voice prompts.

Return the prompt informing the user of what will happen, as per VoiceInteractor.ConfirmationRequest.

public VoiceInteractor.Prompt getVoicePrompt ()

Added in API level 23

Return the prompt informing the user of what will happen, as per VoiceInteractor.ConfirmationRequest.

public void sendConfirmationResult (boolean confirmed, Bundle result)

Added in API level 23

Report that the voice interactor has confirmed the operation with the user, resulting in a call to VoiceInteractor.ConfirmationRequest.onConfirmationResult. This finishes the request (it is no longer active).