语言

VoiceInteractor.SupportsCommands(String[]) 方法

定义

查询 VoiceInteractionService 中提供的受支持命令。

[Android.Runtime.Register("supportsCommands", "([Ljava/lang/String;)[Z", "", ApiSince=23)]
public bool[]? SupportsCommands(string[]? commands);
[<Android.Runtime.Register("supportsCommands", "([Ljava/lang/String;)[Z", "", ApiSince=23)>]
member this.SupportsCommands : string[] -> bool[]

参数

commands
String[]

要查询支持的命令数组。

返回

指示是否支持每个命令的布尔值数组。

特性

注解

查询 VoiceInteractionService 中提供的受支持命令。 该命令是描述要执行的泛型操作的字符串。 例如“org.example.commands.PICK_DATE”,要求用户选取日期。 (注意:这不是实际的工作示例。

Android 参考。android.app.VoiceInteractor.supportsCommands

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于