Compartilhar via


View.IOnHoverListener.OnHover(View, MotionEvent) Method

Definition

Called when a hover event is dispatched to a view.

[Android.Runtime.Register("onHover", "(Landroid/view/View;Landroid/view/MotionEvent;)Z", "GetOnHover_Landroid_view_View_Landroid_view_MotionEvent_Handler:Android.Views.View/IOnHoverListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool OnHover (Android.Views.View? v, Android.Views.MotionEvent? e);
[<Android.Runtime.Register("onHover", "(Landroid/view/View;Landroid/view/MotionEvent;)Z", "GetOnHover_Landroid_view_View_Landroid_view_MotionEvent_Handler:Android.Views.View/IOnHoverListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnHover : Android.Views.View * Android.Views.MotionEvent -> bool

Parameters

v
View

The view the hover event has been dispatched to.

e
MotionEvent

The MotionEvent object containing full information about the event.

Returns

True if the listener has consumed the event, false otherwise.

Attributes

Remarks

Called when a hover event is dispatched to a view. This allows listeners to get a chance to respond before the target view.

Java documentation for android.view.View.OnHoverListener.onHover(android.view.View, 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