语言

View.DispatchGenericMotionEvent(MotionEvent) 方法

定义

调度泛型运动事件。

[Android.Runtime.Register("dispatchGenericMotionEvent", "(Landroid/view/MotionEvent;)Z", "GetDispatchGenericMotionEvent_Landroid_view_MotionEvent_Handler")]
public virtual bool DispatchGenericMotionEvent(Android.Views.MotionEvent? e);
[<Android.Runtime.Register("dispatchGenericMotionEvent", "(Landroid/view/MotionEvent;)Z", "GetDispatchGenericMotionEvent_Landroid_view_MotionEvent_Handler")>]
abstract member DispatchGenericMotionEvent : Android.Views.MotionEvent -> bool
override this.DispatchGenericMotionEvent : Android.Views.MotionEvent -> bool

参数

e
MotionEvent

要调度的动作事件。

返回

如此 如果事件由视图处理,则为 false;否则为 false。

特性

注解

调度泛型运动事件。

源类 InputDevice#SOURCE_CLASS_POINTER 的泛型运动事件将传送到指针下的视图。 所有其他泛型运动事件将传送到焦点视图。 悬停事件是专门处理的,并首先传送到 #onHoverEvent(MotionEvent) 。

Java文档android.view.View.dispatchGenericMotionEvent(android.view.MotionEvent)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于