Most visited

Recently visited

Added in API level 23

VoiceInteractor.CompleteVoiceRequest

public static class VoiceInteractor.CompleteVoiceRequest
extends VoiceInteractor.Request

java.lang.Object
   ↳ android.app.VoiceInteractor.Request
     ↳ android.app.VoiceInteractor.CompleteVoiceRequest


报告当前的交互已成功完成,语音,因此应用程序可以向用户报告最终状态。 响应返回时,语音系统已处理请求并准备切换; 那时应用程序可以开始一个新的非语音活动或完成。 请确保在开始新活动时使用Intent.FLAG_ACTIVITY_NEW_TASK以使新活动不受当前语音交互任务影响。

Summary

Public constructors

VoiceInteractor.CompleteVoiceRequest(VoiceInteractor.Prompt prompt, Bundle extras)

创建一个新的完成的语音交互请求。

Public methods

void onCompleteResult(Bundle result)

Inherited methods

From class android.app.VoiceInteractor.Request
From class java.lang.Object

Public constructors

VoiceInteractor.CompleteVoiceRequest

Added in API level 23
VoiceInteractor.CompleteVoiceRequest (VoiceInteractor.Prompt prompt, 
                Bundle extras)

创建一个新的完成的语音交互请求。

Parameters
prompt VoiceInteractor.Prompt: Optional message to speak to the user about the completion status of the task or null if nothing should be spoken.
extras Bundle: Additional optional information or null.

Public methods

onCompleteResult

Added in API level 23
void onCompleteResult (Bundle result)

Parameters
result Bundle

Hooray!