Android Guides | Samples

Android.App.Dialog.OnGenericMotionEvent Method

Called when a generic motion event was not handled by any of the views inside of the dialog.

Syntax

[Android.Runtime.Register("onGenericMotionEvent", "(Landroid/view/MotionEvent;)Z", "GetOnGenericMotionEvent_Landroid_view_MotionEvent_Handler")]
public virtual Boolean OnGenericMotionEvent (MotionEvent e)

Parameters

e
The generic motion event being processed.

Remarks

Called when a generic motion event was not handled by any of the views inside of the dialog.

Generic motion events describe joystick movements, mouse hovers, track pad touches, scroll wheel movements and other input events. The MotionEvent.Source of the motion event specifies the class of input that was received. Implementations of this method must examine the bits in the source before processing the event. The following code example shows how this is done.

Generic motion events with source class InputDevice.SourceClassPointer are delivered to the view under the pointer. All other generic motion events are delivered to the focused view.

See View.OnGenericMotionEvent(MotionEvent) for an example of how to handle this event.

[Android Documentation]

Requirements

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