共用方式為


AbstractInputMethodService.OnGenericMotionEvent(MotionEvent) Method

Definition

Implement this to handle generic motion events on your input method.

[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

e
MotionEvent

The motion event being received.

Returns

True if the event was handled in this function, false otherwise.

Attributes

Remarks

Implement this to handle generic motion events on your input method.

Java documentation for android.inputmethodservice.AbstractInputMethodService.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