public static final class VoiceInteractionSession.CommandRequest
extends VoiceInteractionSession.Request
| java.lang.Object | ||
| android.service.voice.VoiceInteractionSession.Request | ||
| android.service.voice.VoiceInteractionSession.CommandRequest | ||
根据供应商的具体要求,按照 VoiceInteractor.CommandRequest 。
公共方法(Public methods) |
|
|---|---|
String |
getCommand() 按照 |
void |
sendIntermediateResult(Bundle result) 报告请求的中间结果,但未完成请求(请求仍处于活动状态,应用程序正在等待最终结果),从而导致 |
void |
sendResult(Bundle result) 报告请求的最终结果,完成请求并导致 |
继承方法(Inherited methods) |
|
|---|---|
android.service.voice.VoiceInteractionSession.Request
|
|
java.lang.Object
|
|
String getCommand ()
按照 VoiceInteractor.CommandRequest返回正在执行的命令。
| 返回(Returns) | |
|---|---|
String |
|
void sendIntermediateResult (Bundle result)
报告请求的中间结果,但未完成(请求仍处于活动状态,并且应用程序正在等待最终结果),从而导致 VoiceInteractor.CommandRequest.onCommandResult调用isCompleted为false。
| 参数(Parameters) | |
|---|---|
result |
Bundle
|
void sendResult (Bundle result)
报告请求的最终结果,完成请求并导致VoiceInteractor.CommandRequest.onCommandResult的调用isCompleted为true。 这完成了请求(它不再处于活动状态)。
| 参数(Parameters) | |
|---|---|
result |
Bundle
|