다음을 통해 공유


Instrumentation.SendCharacterSync(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("sendCharacterSync", "(I)V", "GetSendCharacterSync_IHandler")]
public virtual void SendCharacterSync (Android.Views.Keycode keyCode);
[<Android.Runtime.Register("sendCharacterSync", "(I)V", "GetSendCharacterSync_IHandler")>]
abstract member SendCharacterSync : Android.Views.Keycode -> unit
override this.SendCharacterSync : Android.Views.Keycode -> unit

Parameters

keyCode
Keycode

The key code of the character to send.

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.

Equivalent to #sendKeyDownUpSync(int).

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