Udostępnij za pośrednictwem


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

The integer keycode for the event.

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.

Java documentation for android.app.Instrumentation.sendKeyDownUpSync(int).

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