# Print output for @column tags ?> VoiceInteractionSession.ConfirmationRequest - Android SDK | Android Developers

Most visited

Recently visited

VoiceInteractionSession.ConfirmationRequest

public static final class VoiceInteractionSession.ConfirmationRequest
extends VoiceInteractionSession.Request

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


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

Summary

Public methods

CharSequence getPrompt()

This method is deprecated. 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.

Inherited methods

Public methods

getPrompt

public CharSequence getPrompt ()

This method is deprecated.
Prefer getVoicePrompt() which allows multiple voice prompts.

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

Returns
CharSequence This value may be null.

getVoicePrompt

public VoiceInteractor.Prompt getVoicePrompt ()

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

Returns
VoiceInteractor.Prompt This value may be null.

sendConfirmationResult

public 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. This finishes the request (it is no longer active).

Parameters
confirmed boolean

result Bundle