public static class VoiceInteractor.AbortVoiceRequest extends VoiceInteractor.Request
Intent.FLAG_ACTIVITY_NEW_TASK
to keep the new activity out of the current voice
interaction task.Constructor and Description |
---|
AbortVoiceRequest(CharSequence message,
Bundle extras)
Create a new voice abort request.
|
AbortVoiceRequest(VoiceInteractor.Prompt prompt,
Bundle extras)
Create a new voice abort request.
|
Modifier and Type | Method and Description |
---|---|
void |
onAbortResult(Bundle result) |
cancel, getActivity, getContext, getName, onAttached, onCancel, onDetached, toString
public AbortVoiceRequest(VoiceInteractor.Prompt prompt, Bundle extras)
prompt
- Optional message to speak to the user indicating why the task could
not be completed by voice or null if nothing should be spoken.extras
- Additional optional information or null.public AbortVoiceRequest(CharSequence message, Bundle extras)
message
- Optional message to speak to the user indicating why the task could
not be completed by voice or null if nothing should be spoken.extras
- Additional optional information or null.public void onAbortResult(Bundle result)