public static final class VoiceInteractionSession.CommandRequest extends VoiceInteractionSession.Request
VoiceInteractor.CommandRequest
.Modifier and Type | Method and Description |
---|---|
String |
getCommand()
Return the command that is being executed, as per
VoiceInteractor.CommandRequest . |
void |
sendIntermediateResult(Bundle result)
Report an intermediate result of the request, without completing it (the request
is still active and the app is waiting for the final result), resulting in a call to
VoiceInteractor.CommandRequest.onCommandResult with false for isCompleted. |
void |
sendResult(Bundle result)
Report the final result of the request, completing the request and resulting in a call to
VoiceInteractor.CommandRequest.onCommandResult with true for isCompleted. |
cancel, getCallingPackage, getCallingUid, getExtras, isActive, toString
public String getCommand()
VoiceInteractor.CommandRequest
.public void sendIntermediateResult(Bundle result)
VoiceInteractor.CommandRequest.onCommandResult
with false for isCompleted.public void sendResult(Bundle result)
VoiceInteractor.CommandRequest.onCommandResult
with true for isCompleted.
This finishes the request (it is no longer active).