CommandRequest
class CommandRequest : VoiceInteractionSession.Request
kotlin.Any | ||
↳ | android.service.voice.VoiceInteractionSession.Request | |
↳ | android.service.voice.VoiceInteractionSession.CommandRequest |
A generic vendor-specific request, as per VoiceInteractor.CommandRequest
.
Summary
Public methods | |
---|---|
String! |
Return the command that is being executed, as per |
Unit |
sendIntermediateResult(result: Bundle!) 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 |
Unit |
sendResult(result: Bundle!) Report the final result of the request, completing the request and resulting in a call to |
Inherited functions | |
---|---|
Public methods
getCommand
fun getCommand(): String!
Return the command that is being executed, as per VoiceInteractor.CommandRequest
.
sendIntermediateResult
fun sendIntermediateResult(result: Bundle!): Unit
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.
sendResult
fun sendResult(result: Bundle!): Unit
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).