Läs på engelska

Dela via


View.DispatchTouchEvent(MotionEvent) Method

Definition

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

C#
[Android.Runtime.Register("dispatchTouchEvent", "(Landroid/view/MotionEvent;)Z", "GetDispatchTouchEvent_Landroid_view_MotionEvent_Handler")]
public virtual bool DispatchTouchEvent (Android.Views.MotionEvent? e);

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

Produkt Versioner
.NET for Android .NET for Android API 34, .NET for Android API 35