語言

Activity.DispatchGenericMotionEvent(MotionEvent) 方法

定義

被召喚處理一般動態事件。

[Android.Runtime.Register("dispatchGenericMotionEvent", "(Landroid/view/MotionEvent;)Z", "GetDispatchGenericMotionEvent_Landroid_view_MotionEvent_Handler")]
public virtual bool DispatchGenericMotionEvent(Android.Views.MotionEvent? ev);
[<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

參數

ev
MotionEvent

通用的運動事件。

傳回

如果此事件被消耗,則 返回 true。

實作

屬性

備註

被召喚處理一般動態事件。 你可以覆蓋這個設定,在所有通用動作事件被派遣到視窗前攔截它們。 對於一般動態事件,請務必呼叫此實作,這些事件應該會正常處理。

另請參閱:

Android 參考資料。android.app.Activity.dispatchGenericMotionEvent

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

適用於