Android APIs
public static class

VoiceInteractor.ConfirmationRequest

extends VoiceInteractor.Request
java.lang.Object
   ↳ android.app.VoiceInteractor.Request
     ↳ android.app.VoiceInteractor.ConfirmationRequest

Summary

Public Constructors
VoiceInteractor.ConfirmationRequest(CharSequence prompt, Bundle extras)
Confirms an operation with the user via the trusted system VoiceInteractionService.
Public Methods
void onConfirmationResult(boolean confirmed, Bundle result)
[Expand]
Inherited Methods
From class android.app.VoiceInteractor.Request
From class java.lang.Object

Public Constructors

public VoiceInteractor.ConfirmationRequest (CharSequence prompt, Bundle extras)

Confirms an operation with the user via the trusted system VoiceInteractionService. This allows an Activity to complete an unsafe operation that would require the user to touch the screen when voice interaction mode is not enabled. The result of the confirmation will be returned through an asynchronous call to either onConfirmationResult(boolean, android.os.Bundle) or onCancel().

In some cases this may be a simple yes / no confirmation or the confirmation could include context information about how the action will be completed (e.g. booking a cab might include details about how long until the cab arrives) so the user can give a confirmation.

Parameters
prompt Optional confirmation text to read to the user as the action being confirmed.
extras Additional optional information.

Public Methods

public void onConfirmationResult (boolean confirmed, Bundle result)