public static final class VoiceInteractionSession.ConfirmationRequest
extends VoiceInteractionSession.Request
| java.lang.Object | ||
| android.service.voice.VoiceInteractionSession.Request | ||
| android.service.voice.VoiceInteractionSession.ConfirmationRequest | ||
按照 VoiceInteractor.ConfirmationRequest的操作用户的确认请求。
公共方法(Public methods) |
|
|---|---|
CharSequence |
getPrompt() 此方法在API级别23中已被弃用。首选 |
VoiceInteractor.Prompt |
getVoicePrompt() 按照 |
void |
sendConfirmationResult(boolean confirmed, Bundle result) 报告语音交互者已确认与用户的操作,导致致电 |
继承方法(Inherited methods) |
|
|---|---|
android.service.voice.VoiceInteractionSession.Request
|
|
java.lang.Object
|
|
CharSequence getPrompt ()
此方法在API级别23中已弃用。
首选getVoicePrompt() ,允许多种语音提示。
按照 VoiceInteractor.ConfirmationRequest返回通知用户将发生什么的提示。
| 返回(Returns) | |
|---|---|
CharSequence |
|
VoiceInteractor.Prompt getVoicePrompt ()
按照 VoiceInteractor.ConfirmationRequest返回提示通知用户将发生什么。
| 返回(Returns) | |
|---|---|
VoiceInteractor.Prompt |
|
void sendConfirmationResult (boolean confirmed,
Bundle result)
报告语音交互者已确认与用户的操作,导致致电VoiceInteractor.ConfirmationRequest.onConfirmationResult 。 这完成了请求(它不再处于活动状态)。
| 参数(Parameters) | |
|---|---|
confirmed |
boolean
|
result |
Bundle
|