Most visited

Recently visited

Added in API level 23

VoiceInteractionSession.AbortVoiceRequest

public static final class VoiceInteractionSession.AbortVoiceRequest
extends VoiceInteractionSession.Request

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


按照 VoiceInteractor.AbortVoiceRequest要求报告当前用户交互无法用语音完成。

Summary

Public methods

CharSequence getMessage()

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

VoiceInteractor.Prompt getVoicePrompt()

按照 VoiceInteractor.AbortVoiceRequest返回通知用户该问题的消息。

void sendAbortResult(Bundle result)

报告语音交互者已完成中止语音操作,导致致电 VoiceInteractor.AbortVoiceRequest.onAbortResult

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.AbortVoiceRequest返回通知用户问题的消息。

Returns
CharSequence

getVoicePrompt

Added in API level 23
VoiceInteractor.Prompt getVoicePrompt ()

按照 VoiceInteractor.AbortVoiceRequest返回通知用户问题的消息。

Returns
VoiceInteractor.Prompt

sendAbortResult

Added in API level 23
void sendAbortResult (Bundle result)

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

Parameters
result Bundle

Hooray!