Freigeben über


GestureDetector.OnGenericMotionEvent(MotionEvent) Method

Definition

Analyzes the given generic motion event and if applicable triggers the appropriate callbacks on the OnGestureListener supplied.

[Android.Runtime.Register("onGenericMotionEvent", "(Landroid/view/MotionEvent;)Z", "GetOnGenericMotionEvent_Landroid_view_MotionEvent_Handler", ApiSince=23)]
public virtual bool OnGenericMotionEvent (Android.Views.MotionEvent ev);
[<Android.Runtime.Register("onGenericMotionEvent", "(Landroid/view/MotionEvent;)Z", "GetOnGenericMotionEvent_Landroid_view_MotionEvent_Handler", ApiSince=23)>]
abstract member OnGenericMotionEvent : Android.Views.MotionEvent -> bool
override this.OnGenericMotionEvent : Android.Views.MotionEvent -> bool

Parameters

ev
MotionEvent

The current motion event.

Returns

true if the OnGestureListener consumed the event, else false.

Attributes

Remarks

Analyzes the given generic motion event and if applicable triggers the appropriate callbacks on the OnGestureListener supplied.

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

Applies to