Udostępnij za pośrednictwem


View.DispatchTouchEvent(MotionEvent) Method

Definition

Pass the touch screen motion event down to the target view, or this view if it is the target.

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

Parameters

e
MotionEvent

The motion event to be dispatched.

Returns

True if the event was handled by the view, false otherwise.

Attributes

Remarks

Pass the touch screen motion event down to the target view, or this view if it is the target.

Java documentation for android.view.View.dispatchTouchEvent(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