Partager via


AccessibilityManager.IsTouchExplorationEnabled Property

Definition

Returns if the touch exploration in the system is enabled.

public bool IsTouchExplorationEnabled { [Android.Runtime.Register("isTouchExplorationEnabled", "()Z", "")] get; }
[<get: Android.Runtime.Register("isTouchExplorationEnabled", "()Z", "")>]
member this.IsTouchExplorationEnabled : bool

Property Value

True if touch exploration is enabled, false otherwise.

Attributes

Remarks

Returns if the touch exploration in the system is enabled.

<b>Note:</b> This query is used for dispatching hover events, such as android.view.MotionEvent#ACTION_HOVER_ENTER, to accessibility services to manage touch exploration. Avoid changing UI or app behavior based on the state of accessibility. While well-intentioned, doing this creates brittle, less well-maintained code that works for som users but not others. Shared code leads to more equitable experiences and less technical debt.

Java documentation for android.view.accessibility.AccessibilityManager.isTouchExplorationEnabled().

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