Instrumentation.SendKeyDownUpSync(Keycode) Method

Definition

Sends up and down key events with the given key code to the currently focused window, and waits for it to be processed.

[Android.Runtime.Register("sendKeyDownUpSync", "(I)V", "GetSendKeyDownUpSync_IHandler")]
public virtual void SendKeyDownUpSync(Android.Views.Keycode key);
[<Android.Runtime.Register("sendKeyDownUpSync", "(I)V", "GetSendKeyDownUpSync_IHandler")>]
abstract member SendKeyDownUpSync : Android.Views.Keycode -> unit
override this.SendKeyDownUpSync : Android.Views.Keycode -> unit

Parameters

key
Keycode
Attributes

Remarks

Sends up and down key events with the given key code to the currently focused window, and waits for it to be processed.

See also:

Android reference for android.app.Instrumentation.sendKeyDownUpSync.

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