Activity.DispatchGenericMotionEvent(MotionEvent) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
被召喚處理一般動態事件。
[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 所創建與分享的作品,並依授權條款所描述的使用進行修改。