Share via


AccessibilityEvent.SetAction(GlobalAction) Method

Definition

Sets the performed action that triggered this event.

[Android.Runtime.Register("setAction", "(I)V", "")]
public void SetAction (Android.AccessibilityServices.GlobalAction action);
[<Android.Runtime.Register("setAction", "(I)V", "")>]
member this.SetAction : Android.AccessibilityServices.GlobalAction -> unit

Parameters

action
GlobalAction

The action.

Attributes

Remarks

Sets the performed action that triggered this event.

Valid actions are defined in AccessibilityNodeInfo: <ul> <li>AccessibilityNodeInfo#ACTION_ACCESSIBILITY_FOCUS<li>AccessibilityNodeInfo#ACTION_CLEAR_ACCESSIBILITY_FOCUS<li>AccessibilityNodeInfo#ACTION_CLEAR_FOCUS<li>AccessibilityNodeInfo#ACTION_CLEAR_SELECTION<li>AccessibilityNodeInfo#ACTION_CLICK<li>etc. </ul>

Java documentation for android.view.accessibility.AccessibilityEvent.setAction(int).

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