Sdílet prostřednictvím


TouchDelegate.OnTouchExplorationHoverEvent(MotionEvent) Method

Definition

Forward hover events to the delegate view if the event is within the bounds specified in the constructor and touch exploration is enabled.

[Android.Runtime.Register("onTouchExplorationHoverEvent", "(Landroid/view/MotionEvent;)Z", "GetOnTouchExplorationHoverEvent_Landroid_view_MotionEvent_Handler", ApiSince=29)]
public virtual bool OnTouchExplorationHoverEvent (Android.Views.MotionEvent e);
[<Android.Runtime.Register("onTouchExplorationHoverEvent", "(Landroid/view/MotionEvent;)Z", "GetOnTouchExplorationHoverEvent_Landroid_view_MotionEvent_Handler", ApiSince=29)>]
abstract member OnTouchExplorationHoverEvent : Android.Views.MotionEvent -> bool
override this.OnTouchExplorationHoverEvent : Android.Views.MotionEvent -> bool

Parameters

Returns

True if the event was consumed by the delegate, false otherwise.

Attributes

Remarks

Forward hover events to the delegate view if the event is within the bounds specified in the constructor and touch exploration is enabled.

This method is provided for accessibility purposes so touch exploration, which is commonly used by screen readers, can properly place accessibility focus on views that use touch delegates. Therefore, touch exploration must be enabled for hover events to be dispatched through the delegate.

Java documentation for android.view.TouchDelegate.onTouchExplorationHoverEvent(android.view.MotionEvent).

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