Partager via


GestureDetector.OnTouchEvent(MotionEvent) Method

Definition

Analyzes the given motion event and if applicable triggers the appropriate callbacks on the OnGestureListener supplied.

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

Parameters

ev
MotionEvent

The current motion event.

Returns

true if the OnGestureListener consumed the event, else false.

Attributes

Remarks

Analyzes the given motion event and if applicable triggers the appropriate callbacks on the OnGestureListener supplied.

Java documentation for android.view.GestureDetector.onTouchEvent(android.view.MotionEvent).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to