Most visited

Recently visited

Added in API level 23

VoiceInteractionSession.CommandRequest

public static final class VoiceInteractionSession.CommandRequest
extends VoiceInteractionSession.Request

java.lang.Object
   ↳ android.service.voice.VoiceInteractionSession.Request
     ↳ android.service.voice.VoiceInteractionSession.CommandRequest


根据供应商的具体要求,按照 VoiceInteractor.CommandRequest

Summary

Public methods

String getCommand()

按照 VoiceInteractor.CommandRequest返回正在执行的命令。

void sendIntermediateResult(Bundle result)

报告请求的中间结果,但未完成请求(请求仍处于活动状态,应用程序正在等待最终结果),从而导致 VoiceInteractor.CommandRequest.onCommandResult调用isCompleted为false。

void sendResult(Bundle result)

报告请求的最终结果,完成请求并导致 VoiceInteractor.CommandRequest.onCommandResult对isCompleted为true。

Inherited methods

From class android.service.voice.VoiceInteractionSession.Request
From class java.lang.Object

Public methods

getCommand

Added in API level 23
String getCommand ()

按照 VoiceInteractor.CommandRequest返回正在执行的命令。

Returns
String

sendIntermediateResult

Added in API level 23
void sendIntermediateResult (Bundle result)

报告请求的中间结果,但未完成(请求仍处于活动状态,并且应用程序正在等待最终结果),从而导致 VoiceInteractor.CommandRequest.onCommandResult调用isCompleted为false。

Parameters
result Bundle

sendResult

Added in API level 23
void sendResult (Bundle result)

报告请求的最终结果,完成请求并导致VoiceInteractor.CommandRequest.onCommandResult的调用isCompleted为true。 这完成了请求(它不再处于活动状态)。

Parameters
result Bundle

Hooray!