VoiceInteractionService.OnGetSupportedVoiceActions Method

Definition

Request to query for what extended voice actions this service supports.

[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>

Parameters

voiceActions
ICollection<String>

A set of checked voice actions.

Returns

Returns a subset of checked voice actions. Additional voice actions in the returned set will be ignored. Returns empty set if no actions are supported.

Attributes

Remarks

Request to query for what extended voice actions this service supports. This method will be called when the system checks the supported actions of this VoiceInteractionService. Supported actions may be delivered to VoiceInteractionSession later to request a session to perform an action.

Voice actions are defined in support libraries and could vary based on platform context. For example, car related voice actions will be defined in car support libraries.

Java documentation for android.service.voice.VoiceInteractionService.onGetSupportedVoiceActions(java.util.Set<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