Megosztás a következőn keresztül:


Dialog.DispatchTouchEvent(MotionEvent) Method

Definition

Called to process touch screen events.

[Android.Runtime.Register("dispatchTouchEvent", "(Landroid/view/MotionEvent;)Z", "GetDispatchTouchEvent_Landroid_view_MotionEvent_Handler")]
public virtual bool DispatchTouchEvent (Android.Views.MotionEvent ev);
[<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

ev
MotionEvent

The touch screen event.

Returns

boolean Return true if this event was consumed.

Implements

Attributes

Remarks

Called to process touch screen events. You can override this to intercept all touch screen events before they are dispatched to the window. Be sure to call this implementation for touch screen events that should be handled normally.

Java documentation for android.app.Dialog.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