From dc46c85da68a5a839366bb961d7bad93926a6d4c Mon Sep 17 00:00:00 2001 From: Hall Liu Date: Thu, 29 Oct 2020 16:15:33 -0700 Subject: Update docs for RttCall#write Update docs to clarify some confusion over recommended behavior for paste/autocomplete operations. Bug: 171986522 Test: docs only Change-Id: I0515319a1aff00640fb4557584b17f10126eb215 --- telecomm/java/android/telecom/Call.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'telecomm') diff --git a/telecomm/java/android/telecom/Call.java b/telecomm/java/android/telecom/Call.java index a85eb53605d6..1238e7b69a87 100755 --- a/telecomm/java/android/telecom/Call.java +++ b/telecomm/java/android/telecom/Call.java @@ -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. -- cgit v1.2.3