Most visited

Recently visited

Added in API level 23

VoiceInteractionSession.CompleteVoiceRequest

public static final class VoiceInteractionSession.CompleteVoiceRequest
extends VoiceInteractionSession.Request

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


按照 VoiceInteractor.CompleteVoiceRequest的要求简单通知用户语音操作已完成。

Summary

Public methods

CharSequence getMessage()

此方法在API级别23中已被弃用。首选getVoicePrompt() ,允许单独的可视消息。

VoiceInteractor.Prompt getVoicePrompt()

按照 VoiceInteractor.CompleteVoiceRequest返回通知用户完成的消息。

void sendCompleteResult(Bundle result)

报告语音交互者已完成语音操作,导致致电 VoiceInteractor.CompleteVoiceRequest.onCompleteResult

Inherited methods

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

Public methods

getMessage

Added in API level 23
CharSequence getMessage ()

此方法在API级别23中已弃用。
首选getVoicePrompt() ,允许单独的视觉信息。

按照 VoiceInteractor.CompleteVoiceRequest返回通知用户完成的消息。

Returns
CharSequence

getVoicePrompt

Added in API level 23
VoiceInteractor.Prompt getVoicePrompt ()

按照 VoiceInteractor.CompleteVoiceRequest返回通知用户完成的消息。

Returns
VoiceInteractor.Prompt

sendCompleteResult

Added in API level 23
void sendCompleteResult (Bundle result)

报告语音交互者已完成语音操作,导致致电VoiceInteractor.CompleteVoiceRequest.onCompleteResult 这完成了请求(它不再处于活动状态)。

Parameters
result Bundle

Hooray!