Dela via


TouchInteractionController.PerformClick Method

Definition

If AccessibilityServiceInfo#FLAG_REQUEST_TOUCH_EXPLORATION_MODE and If {@link AccessibilityServiceInfo#FLAG_REQUEST_TOUCH_EXPLORATION_MODE is enabled and at least one callback has been added, this function tells the framework to perform a click.

[Android.Runtime.Register("performClick", "()V", "", ApiSince=33)]
public void PerformClick ();
[<Android.Runtime.Register("performClick", "()V", "", ApiSince=33)>]
member this.PerformClick : unit -> unit
Attributes

Remarks

If AccessibilityServiceInfo#FLAG_REQUEST_TOUCH_EXPLORATION_MODE and If {@link AccessibilityServiceInfo#FLAG_REQUEST_TOUCH_EXPLORATION_MODE is enabled and at least one callback has been added, this function tells the framework to perform a click. The framework will first try to perform AccessibilityNodeInfo.AccessibilityAction#ACTION_CLICK on the item with accessibility focus. If that fails, the framework will simulate a click using motion events on the last location to have accessibility focus.

Java documentation for android.accessibilityservice.TouchInteractionController.performClick().

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