次の方法で共有


Call.RttCall.Write(String) Method

Definition

Writes the string into the outgoing text stream for this RTT call.

[Android.Runtime.Register("write", "(Ljava/lang/String;)V", "", ApiSince=26)]
public void Write (string? input);
[<Android.Runtime.Register("write", "(Ljava/lang/String;)V", "", ApiSince=26)>]
member this.Write : string -> unit

Parameters

input
String

The message to send to the remote user.

Attributes

Remarks

Writes the string into the outgoing text stream for this RTT call. Since RTT transmits text in real-time, this method should be called once for each user action. For example, when the user enters text as discrete characters using the keyboard, this method should be called once for each character. However, if the user enters text by pasting or autocomplete, the entire contents of the pasted or autocompleted text should be sent in one call to this method.

This method is not thread-safe -- calling it from multiple threads simultaneously may lead to interleaved text.

Java documentation for android.telecom.Call.RttCall.write(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