語言

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

該動議事件將被發送。

傳回

如果事件是由視圖處理,則為真;否則為假。

屬性

備註

派遣一個通用的動作事件。

帶有來源類別 InputDevice#SOURCE_CLASS_POINTER 的通用運動事件會傳送到指標下方的視圖。 所有其他通用運動事件則傳送到焦點視圖。 懸停事件會特別處理,並送達給 #onHoverEvent(MotionEvent) 第一位。

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

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於