Share via


ScaleGestureDetector.OnTouchEvent(MotionEvent) Method

Definition

Accepts MotionEvents and dispatches events to a OnScaleGestureListener when appropriate.

[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 event to process

Returns

true if the event was processed and the detector wants to receive the rest of the MotionEvents in this event stream.

Attributes

Remarks

Accepts MotionEvents and dispatches events to a OnScaleGestureListener when appropriate.

Applications should pass a complete and consistent event stream to this method. A complete and consistent event stream involves all MotionEvents from the initial ACTION_DOWN to the final ACTION_UP or ACTION_CANCEL.

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