Język

AccessibilityNodeInfo.AccessibilityAction.ActionLongClick Property

Definition

Action that long clicks on the node.

[Android.Runtime.Register("ACTION_LONG_CLICK")]
public static Android.Views.Accessibility.AccessibilityNodeInfo.AccessibilityAction ActionLongClick { get; }
[<Android.Runtime.Register("ACTION_LONG_CLICK")>]
static member ActionLongClick : Android.Views.Accessibility.AccessibilityNodeInfo.AccessibilityAction

Property Value

Attributes

Remarks

Action that long clicks on the node.

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

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

Android reference for android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction.ACTION_LONG_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