Partager via


Instrumentation.SendStringSync(String) Method

Definition

Sends the key events that result in the given text being typed into the currently focused window, and waits for it to be processed.

[Android.Runtime.Register("sendStringSync", "(Ljava/lang/String;)V", "GetSendStringSync_Ljava_lang_String_Handler")]
public virtual void SendStringSync (string? text);
[<Android.Runtime.Register("sendStringSync", "(Ljava/lang/String;)V", "GetSendStringSync_Ljava_lang_String_Handler")>]
abstract member SendStringSync : string -> unit
override this.SendStringSync : string -> unit

Parameters

text
String

The text to be sent.

Attributes

Remarks

Sends the key events that result in the given text being typed into the currently focused window, and waits for it to be processed.

Java documentation for android.app.Instrumentation.sendStringSync(java.lang.String).

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