View.DispatchGenericMotionEvent(MotionEvent) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
派遣一個通用的動作事件。
[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
參數
該動議事件將被發送。
傳回
如果事件是由視圖處理,則為真;否則為假。
- 屬性
備註
派遣一個通用的動作事件。
帶有來源類別 InputDevice#SOURCE_CLASS_POINTER 的通用運動事件會傳送到指標下方的視圖。 所有其他通用運動事件則傳送到焦點視圖。 懸停事件會特別處理,並送達給 #onHoverEvent(MotionEvent) 第一位。
Java 文件 android.view.View.dispatchGenericMotionEvent(android.view.MotionEvent)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。