Share via


Call.RttCall.Read Method

Definition

Reads a string from the remote user, blocking if there is no data available.

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

Returns

A string containing text sent by the remote user, or null if the conversation has been terminated or if there was an error while reading.

Attributes

Remarks

Reads a string from the remote user, blocking if there is no data available. Returns null if the RTT conversation has been terminated and there is no further data to read.

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

Java documentation for android.telecom.Call.RttCall.read().

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