共用方式為


View.DispatchCapturedPointerEvent(MotionEvent) Method

Definition

Pass a captured pointer event down to the focused view.

[Android.Runtime.Register("dispatchCapturedPointerEvent", "(Landroid/view/MotionEvent;)Z", "GetDispatchCapturedPointerEvent_Landroid_view_MotionEvent_Handler", ApiSince=26)]
public virtual bool DispatchCapturedPointerEvent (Android.Views.MotionEvent? e);
[<Android.Runtime.Register("dispatchCapturedPointerEvent", "(Landroid/view/MotionEvent;)Z", "GetDispatchCapturedPointerEvent_Landroid_view_MotionEvent_Handler", ApiSince=26)>]
abstract member DispatchCapturedPointerEvent : Android.Views.MotionEvent -> bool
override this.DispatchCapturedPointerEvent : Android.Views.MotionEvent -> bool

Parameters

Returns

True if the event was handled by the view, false otherwise.

Attributes

Remarks

Pass a captured pointer event down to the focused view.

Java documentation for android.view.View.dispatchCapturedPointerEvent(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