次の方法で共有


Connection.RttTextStream.Read Method

Definition

Reads a string from the in-call app, blocking if there is no data available.

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

Returns

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

Attributes

Remarks

Reads a string from the in-call app, 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.Connection.RttTextStream.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