Language

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

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 not 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.

Android reference for android.app.Instrumentation.sendTrackballEventSync.

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