public static class VoiceInteractor.CommandRequest extends VoiceInteractor.Request
onCommandResult(boolean, android.os.Bundle)
or
VoiceInteractor.Request.onCancel()
.
The command is a string that describes the generic operation to be performed. The command will determine how the properties in extras are interpreted and the set of available commands is expected to grow over time. An example might be "com.google.voice.commands.REQUEST_NUMBER_BAGS" to request the number of bags as part of airline check-in. (This is not an actual working example.)
Constructor and Description |
---|
CommandRequest(String command,
Bundle args)
Create a new generic command request.
|
Modifier and Type | Method and Description |
---|---|
void |
onCommandResult(boolean isCompleted,
Bundle result)
Results for CommandRequest can be returned in partial chunks.
|
cancel, getActivity, getContext, getName, onAttached, onCancel, onDetached, toString
public void onCommandResult(boolean isCompleted, Bundle result)