VoiceInteractionService.OnGetSupportedVoiceActions 方法

定义

请求查询此服务支持的扩展语音操作。

[Android.Runtime.Register("onGetSupportedVoiceActions", "(Ljava/util/Set;)Ljava/util/Set;", "GetOnGetSupportedVoiceActions_Ljava_util_Set_Handler", ApiSince=29)]
public virtual System.Collections.Generic.ICollection<string> OnGetSupportedVoiceActions (System.Collections.Generic.ICollection<string> voiceActions);
[<Android.Runtime.Register("onGetSupportedVoiceActions", "(Ljava/util/Set;)Ljava/util/Set;", "GetOnGetSupportedVoiceActions_Ljava_util_Set_Handler", ApiSince=29)>]
abstract member OnGetSupportedVoiceActions : System.Collections.Generic.ICollection<string> -> System.Collections.Generic.ICollection<string>
override this.OnGetSupportedVoiceActions : System.Collections.Generic.ICollection<string> -> System.Collections.Generic.ICollection<string>

参数

voiceActions
ICollection<String>

一组已检查的语音操作。

返回

返回已检查语音操作的子集。 将忽略返回集中的其他语音操作。 如果未支持任何操作,则返回空集。

属性

注解

请求查询此服务支持的扩展语音操作。 当系统检查此 VoiceInteractionService操作支持的操作时,将调用此方法。 支持的操作可以传送到 VoiceInteractionSession 以后,以请求会话执行操作。

语音操作在支持库中定义,可能会因平台上下文而异。 例如,汽车相关语音操作将在汽车支持库中定义。

适用于 . 的 android.service.voice.VoiceInteractionService.onGetSupportedVoiceActions(java.util.Set<java.lang.String>)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于