次の方法で共有


Instrumentation.SendTrackballEventSync(MotionEvent) Method

Definition

Dispatches a trackball event into the currently focused window, and waits for it to be processed.

[Android.Runtime.Register("sendTrackballEventSync", "(Landroid/view/MotionEvent;)V", "GetSendTrackballEventSync_Landroid_view_MotionEvent_Handler")]
public virtual void SendTrackballEventSync (Android.Views.MotionEvent? e);
[<Android.Runtime.Register("sendTrackballEventSync", "(Landroid/view/MotionEvent;)V", "GetSendTrackballEventSync_Landroid_view_MotionEvent_Handler")>]
abstract member SendTrackballEventSync : Android.Views.MotionEvent -> unit
override this.SendTrackballEventSync : Android.Views.MotionEvent -> unit

Parameters

e
MotionEvent

A motion event describing the trackball action. (As noted in M:Android.Views.MotionEvent.Obtain(System.Int64,System.Int64,System.Int64,System.Int64,System.Int64,System.Int64), be sure to use UptimeMillis() as the timebase.

Attributes

Remarks

Dispatches a trackball event into the currently focused window, and waits for it to be processed.

This method blocks until the recipient has finished handling the event. Note that the recipient may <em>not</em> have completely finished reacting from the event when this method returns. For example, it may still be in the process of updating its display or UI contents upon reacting to the injected event.

Java documentation for android.app.Instrumentation.sendTrackballEventSync(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