Share via


TouchDelegate.OnTouchEvent(MotionEvent) Method

Definition

Forward touch events to the delegate view if the event is within the bounds specified in the constructor.

[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

Parameters

e
MotionEvent

The touch event to forward

Returns

True if the event was consumed by the delegate, false otherwise.

Attributes

Remarks

Forward touch events to the delegate view if the event is within the bounds specified in the constructor.

Java documentation for android.view.TouchDelegate.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