Android Guides | Samples

Android.App.Dialog.OnTouchEvent Method

Called when a touch screen event was not handled by any of the views under it.

Syntax

[Android.Runtime.Register("onTouchEvent", "(Landroid/view/MotionEvent;)Z", "GetOnTouchEvent_Landroid_view_MotionEvent_Handler")]
public virtual Boolean OnTouchEvent (MotionEvent e)

Parameters

e
The touch screen event being processed.

Remarks

Called when a touch screen event was not handled by any of the views under it. This is most useful to process touch events that happen outside of your window bounds, where there is no view to receive it.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1