Merge "Update docs for RttCall#write" am: 730f35321d

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1480257

Change-Id: I117bf87f9f0ee5a96e6a5f3826b584de8b03f6d5
This commit is contained in:
Hall Liu
2020-11-03 21:43:02 +00:00
committed by Automerger Merge Worker

View File

@@ -1468,8 +1468,11 @@ public final class Call {
/**
* Writes the string {@param input} into the outgoing text stream for this RTT call. Since
* RTT transmits text in real-time, this method should be called once for each character
* the user enters into the device.
* 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.