Sprache

AccessibilityNodeInfo.AccessibilityAction.ActionContextClick Property

Definition

Action that context clicks the node.

[Android.Runtime.Register("ACTION_CONTEXT_CLICK", ApiSince=23)]
public static Android.Views.Accessibility.AccessibilityNodeInfo.AccessibilityAction ActionContextClick { get; }
[<Android.Runtime.Register("ACTION_CONTEXT_CLICK", ApiSince=23)>]
static member ActionContextClick : Android.Views.Accessibility.AccessibilityNodeInfo.AccessibilityAction

Property Value

Attributes

Remarks

Action that context clicks the node.

The UI element that implements this should send a AccessibilityEvent.TYPE_VIEW_CONTEXT_CLICKED event. In the View system, the default handling of this action when performed by a service is to call View.performContextClick(), and setting a View.setOnContextClickListener(View.OnContextClickListener) automatically adds this action.

A context click usually occurs from a mouse pointer right-click or a stylus button press.

AccessibilityNodeInfo.isContextClickable() should return true if this action is available.

Android reference for android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction.ACTION_CONTEXT_CLICK.

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