From bb48f2eb5d3f7cbf7fbd6f9b59280dc397e9c105 Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Fri, 14 Aug 2026 05:51:23 -0500 Subject: [PATCH 1/2] Document translation response value APIs Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .../TranslationResponseValue+Builder.xml | 98 +++++++++++++++---- .../TranslationResponseValue.xml | 37 +++++-- 2 files changed, 109 insertions(+), 26 deletions(-) diff --git a/docs/xml/Android.Views.Translation/TranslationResponseValue+Builder.xml b/docs/xml/Android.Views.Translation/TranslationResponseValue+Builder.xml index 9ef36af09..7cee9b028 100644 --- a/docs/xml/Android.Views.Translation/TranslationResponseValue+Builder.xml +++ b/docs/xml/Android.Views.Translation/TranslationResponseValue+Builder.xml @@ -184,10 +184,22 @@ - To be added. - To be added. - To be added. - To be added. + Extra results associated with the translated text. + Sets extra results associated with the translated text. + + Extra results associated with the translated text. + The bundle includes #EXTRA_DEFINITIONS, obtained by Bundle#getBundle. + + + Java documentation for android.view.translation.TranslationResponseValue.Builder.setExtras(android.os.Bundle). + + + + 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. + @@ -217,10 +229,21 @@ - To be added. - To be added. - To be added. - To be added. + The translated text result. + Sets the translated text result. + + The translated text result. + + + Java documentation for android.view.translation.TranslationResponseValue.Builder.setText(java.lang.CharSequence). + + + + 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. + @@ -246,10 +269,21 @@ - To be added. - To be added. - To be added. - To be added. + The translated text result. + Sets the translated text result. + + The translated text result. + + + Java documentation for android.view.translation.TranslationResponseValue.Builder.setText(java.lang.CharSequence). + + + + 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. + @@ -279,10 +313,22 @@ - To be added. - To be added. - To be added. - To be added. + The transliteration result of the translated text. + Sets the transliteration result of the translated text. + + The transliteration result of the translated text. + This returns a CharSequence representation of the transliteration of the translated text. + + + Java documentation for android.view.translation.TranslationResponseValue.Builder.setTransliteration(java.lang.CharSequence). + + + + 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. + @@ -308,10 +354,22 @@ - To be added. - To be added. - To be added. - To be added. + The transliteration result of the translated text. + Sets the transliteration result of the translated text. + + The transliteration result of the translated text. + This returns a CharSequence representation of the transliteration of the translated text. + + + Java documentation for android.view.translation.TranslationResponseValue.Builder.setTransliteration(java.lang.CharSequence). + + + + 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. + diff --git a/docs/xml/Android.Views.Translation/TranslationResponseValue.xml b/docs/xml/Android.Views.Translation/TranslationResponseValue.xml index a0d9acdbd..415d92b5c 100644 --- a/docs/xml/Android.Views.Translation/TranslationResponseValue.xml +++ b/docs/xml/Android.Views.Translation/TranslationResponseValue.xml @@ -461,9 +461,21 @@ System.String - To be added. - To be added. - To be added. + The translated text result. + The translated text result. + + The translated text result. + + + Java documentation for android.view.translation.TranslationResponseValue.getText(). + + + + 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. + @@ -593,9 +605,22 @@ System.String - To be added. - To be added. - To be added. + The transliteration result of the translated text. + The transliteration result of the translated text. + + The transliteration result of the translated text. + This returns a CharSequence representation of the transliteration of the translated text. + + + Java documentation for android.view.translation.TranslationResponseValue.getTransliteration(). + + + + 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. + From 93cdcbec7f60277c953bc35ef734a902c8aac9a4 Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Fri, 14 Aug 2026 06:02:17 -0500 Subject: [PATCH 2/2] Address translation documentation review Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .../TranslationResponseValue+Builder.xml | 12 +++++++++--- .../TranslationResponseValue.xml | 1 - 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/docs/xml/Android.Views.Translation/TranslationResponseValue+Builder.xml b/docs/xml/Android.Views.Translation/TranslationResponseValue+Builder.xml index 7cee9b028..29e1601ef 100644 --- a/docs/xml/Android.Views.Translation/TranslationResponseValue+Builder.xml +++ b/docs/xml/Android.Views.Translation/TranslationResponseValue+Builder.xml @@ -186,9 +186,11 @@ Extra results associated with the translated text. Sets extra results associated with the translated text. + This builder instance. Extra results associated with the translated text. - The bundle includes #EXTRA_DEFINITIONS, obtained by Bundle#getBundle. + The bundle includes TranslationResponseValue.ExtraDefinitions, obtained by + Bundle.GetBundle(string). Java documentation for android.view.translation.TranslationResponseValue.Builder.setExtras(android.os.Bundle). @@ -231,6 +233,7 @@ The translated text result. Sets the translated text result. + This builder instance. The translated text result. @@ -271,6 +274,7 @@ The translated text result. Sets the translated text result. + This builder instance. The translated text result. @@ -315,9 +319,10 @@ The transliteration result of the translated text. Sets the transliteration result of the translated text. + This builder instance. The transliteration result of the translated text. - This returns a CharSequence representation of the transliteration of the translated text. + The value represents the transliteration of the translated text. Java documentation for android.view.translation.TranslationResponseValue.Builder.setTransliteration(java.lang.CharSequence). @@ -356,9 +361,10 @@ The transliteration result of the translated text. Sets the transliteration result of the translated text. + This builder instance. The transliteration result of the translated text. - This returns a CharSequence representation of the transliteration of the translated text. + The value represents the transliteration of the translated text. Java documentation for android.view.translation.TranslationResponseValue.Builder.setTransliteration(java.lang.CharSequence). diff --git a/docs/xml/Android.Views.Translation/TranslationResponseValue.xml b/docs/xml/Android.Views.Translation/TranslationResponseValue.xml index 415d92b5c..6ba60bd37 100644 --- a/docs/xml/Android.Views.Translation/TranslationResponseValue.xml +++ b/docs/xml/Android.Views.Translation/TranslationResponseValue.xml @@ -609,7 +609,6 @@ The transliteration result of the translated text. The transliteration result of the translated text. - This returns a CharSequence representation of the transliteration of the translated text. Java documentation for android.view.translation.TranslationResponseValue.getTransliteration().