Udostępnij za pośrednictwem


Window.ICallback.DispatchTouchEvent(MotionEvent) Method

Definition

Called to process touch screen events.

[Android.Runtime.Register("dispatchTouchEvent", "(Landroid/view/MotionEvent;)Z", "GetDispatchTouchEvent_Landroid_view_MotionEvent_Handler:Android.Views.Window/ICallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool DispatchTouchEvent (Android.Views.MotionEvent e);
[<Android.Runtime.Register("dispatchTouchEvent", "(Landroid/view/MotionEvent;)Z", "GetDispatchTouchEvent_Landroid_view_MotionEvent_Handler:Android.Views.Window/ICallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member DispatchTouchEvent : Android.Views.MotionEvent -> bool

Parameters

e
MotionEvent

The touch screen event.

Returns

boolean Return true if this event was consumed.

Attributes

Remarks

Called to process touch screen events. At the very least your implementation must call android.view.Window#superDispatchTouchEvent to do the standard touch screen processing.

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