VoiceInteractionSession.CommandRequest
public
static
final
class
VoiceInteractionSession.CommandRequest
extends VoiceInteractionSession.Request
java.lang.Object | ||
↳ | android.service.voice.VoiceInteractionSession.Request | |
↳ | android.service.voice.VoiceInteractionSession.CommandRequest |
A generic vendor-specific request, as per
VoiceInteractor.CommandRequest
.
Summary
Public methods | |
---|---|
String
|
getCommand()
Return the command that is being executed, as per
|
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
|
void
|
sendResult(Bundle result)
Report the final result of the request, completing the request and resulting in a call to
|
Inherited methods | |
---|---|
Public methods
getCommand
public String getCommand ()
Return the command that is being executed, as per
VoiceInteractor.CommandRequest
.
Returns | |
---|---|
String |
sendIntermediateResult
public 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.
Parameters | |
---|---|
result |
Bundle |
sendResult
public 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.
This finishes the request (it is no longer active).
Parameters | |
---|---|
result |
Bundle |