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

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

Change-Id: I5d6b4df82724dbeecdb88b65f600912224626f8b
This commit is contained in:
Hall Liu
2020-11-03 21:47:59 +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.