VoiceInteractionSession.OnGetSupportedCommands(String[]) Method

Definition

Request to query for what extended commands the session supports.

[Android.Runtime.Register("onGetSupportedCommands", "([Ljava/lang/String;)[Z", "GetOnGetSupportedCommands_arrayLjava_lang_String_Handler", ApiSince=23)]
public virtual bool[]? OnGetSupportedCommands (string[]? commands);
[<Android.Runtime.Register("onGetSupportedCommands", "([Ljava/lang/String;)[Z", "GetOnGetSupportedCommands_arrayLjava_lang_String_Handler", ApiSince=23)>]
abstract member OnGetSupportedCommands : string[] -> bool[]
override this.OnGetSupportedCommands : string[] -> bool[]

Parameters

commands
String[]

An array of commands that are being queried.

Returns

Return an array of booleans indicating which of each entry in the command array is supported. A true entry in the array indicates the command is supported; false indicates it is not. The default implementation returns an array of all false entries.

Attributes

Remarks

Request to query for what extended commands the session supports.

Java documentation for android.service.voice.VoiceInteractionSession.onGetSupportedCommands(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