Dialog.OnGenericMotionEvent(MotionEvent) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called when a generic motion event was not handled by any of the views inside of the dialog.
[Android.Runtime.Register("onGenericMotionEvent", "(Landroid/view/MotionEvent;)Z", "GetOnGenericMotionEvent_Landroid_view_MotionEvent_Handler")]
public virtual bool OnGenericMotionEvent (Android.Views.MotionEvent e);
[<Android.Runtime.Register("onGenericMotionEvent", "(Landroid/view/MotionEvent;)Z", "GetOnGenericMotionEvent_Landroid_view_MotionEvent_Handler")>]
abstract member OnGenericMotionEvent : Android.Views.MotionEvent -> bool
override this.OnGenericMotionEvent : Android.Views.MotionEvent -> bool
Parameters
The generic motion event being processed.
Returns
Return true if you have consumed the event, false if you haven't. The default implementation always returns false.
- Attributes
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#getSource() 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 android.view.InputDevice#SOURCE_CLASS_POINTER
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.
Java documentation for android.app.Dialog.onGenericMotionEvent(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.