VoiceInteractionService.OnGetSupportedVoiceActions Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.