語言

TouchDelegate.OnTouchEvent(MotionEvent) 方法

定義

如果事件在建構子指定的範圍內,則將觸碰事件轉發到代理視圖。

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

參數

e
MotionEvent

觸地事件轉發

傳回

如果事件被代表消耗,則為真;否則為假。

屬性

備註

如果事件在建構子指定的範圍內,則將觸碰事件轉發到代理視圖。

Java 文件 android.view.TouchDelegate.onTouchEvent(android.view.MotionEvent)

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

適用於