Share via


VoiceInteractor.SupportsCommands(String[]) Method

Definition

Queries the supported commands available from the 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[]

Parameters

commands
String[]

The array of commands to query for support.

Returns

Array of booleans indicating whether each command is supported or not.

Attributes

Remarks

Queries the supported commands available from the VoiceInteractionService. The command is a string that describes the generic operation to be performed. An example might be "org.example.commands.PICK_DATE" to ask the user to pick a date. (Note: This is not an actual working example.)

Java documentation for android.app.VoiceInteractor.supportsCommands(java.lang.String[]).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to