From e2ff5b2c6abf4d7b826b26261437a687aedc4d67 Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Sat, 15 Aug 2026 11:42:56 -0500 Subject: [PATCH 1/2] Document CompletionInfo input methods Refs #191 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .../CompletionInfo.xml | 59 +++++++++++++------ 1 file changed, 42 insertions(+), 17 deletions(-) diff --git a/docs/xml/Android.Views.InputMethods/CompletionInfo.xml b/docs/xml/Android.Views.InputMethods/CompletionInfo.xml index 23d7a6b83..741c5c0df 100644 --- a/docs/xml/Android.Views.InputMethods/CompletionInfo.xml +++ b/docs/xml/Android.Views.InputMethods/CompletionInfo.xml @@ -141,11 +141,16 @@ - To be added. - To be added. - To be added. + An identifier passed through unchanged at the editor's discretion. + The original position of this completion, typically its index in the editor's completion list. + The text inserted into the editor when this completion is selected. Create a simple completion with just text, no label. + + + Java documentation for android.view.inputmethod.CompletionInfo.CompletionInfo(long, int, 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. @@ -224,12 +229,17 @@ - To be added. - To be added. - To be added. - To be added. + An identifier passed through unchanged at the editor's discretion. + The original position of this completion, typically its index in the editor's completion list. + The text inserted into the editor when this completion is selected. + The text that the input method editor should display in its completion list. Create a full completion with both text and label. + + + Java documentation for android.view.inputmethod.CompletionInfo.CompletionInfo(long, int, java.lang.CharSequence, 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. @@ -256,7 +266,7 @@ Used to make this class parcelable. - To be added. + A creator that generates CompletionInfo instances from a Parcel. @@ -298,8 +308,13 @@ Describe the kinds of special objects contained in this Parcelable's marshalled representation. - To be added. + A bitmask of special object types marshaled by this instance; it is 0 or includes the file-descriptor bit. + + + Java documentation for android.os.Parcelable.describeContents(). + + 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. @@ -327,7 +342,7 @@ Return the abstract identifier for this completion, typically corresponding to the id associated with it in the original adapter. - To be added. + The abstract identifier for this completion, typically the identifier associated with it in the original adapter. Return the abstract identifier for this completion, typically corresponding to the id associated with it in the original adapter. @@ -397,9 +412,14 @@ System.String - To be added. - To be added. + Returns the user-visible label for the completion, or null when the plain text should be shown. + The label shown to the user instead of the actual completion text, or null to show that text. + + + Java documentation for android.view.inputmethod.CompletionInfo.getLabel(). + + 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. @@ -426,7 +446,7 @@ Return the user-visible label for the completion, or null if the plain text should be shown. - To be added. + The label shown to the user instead of the actual completion text, or null to show that text. Return the user-visible label for the completion, or null if the plain text should be shown. If non-null, this will be what the user sees as @@ -467,7 +487,7 @@ Return the original position of this completion, typically corresponding to its position in the original adapter. - To be added. + The original position of this completion, typically its position in the original adapter. Return the original position of this completion, typically corresponding to its position in the original adapter. @@ -499,9 +519,14 @@ System.String - To be added. - To be added. + Returns the actual text associated with this completion. + The text inserted into the editor when the user selects this completion. + + + Java documentation for android.view.inputmethod.CompletionInfo.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. @@ -527,7 +552,7 @@ Return the actual text associated with this completion. - To be added. + The text inserted into the editor when the user selects this completion. Return the actual text associated with this completion. This is the real text that will be inserted into the editor if the user selects it. From 3a187f833bf68a30ad38a24b5832259e1e64cbe2 Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Sat, 15 Aug 2026 11:54:08 -0500 Subject: [PATCH 2/2] Link Parcelable descriptor documentation Refs #191 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- docs/xml/Android.Views.InputMethods/CompletionInfo.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/xml/Android.Views.InputMethods/CompletionInfo.xml b/docs/xml/Android.Views.InputMethods/CompletionInfo.xml index 741c5c0df..72f830098 100644 --- a/docs/xml/Android.Views.InputMethods/CompletionInfo.xml +++ b/docs/xml/Android.Views.InputMethods/CompletionInfo.xml @@ -308,7 +308,7 @@ Describe the kinds of special objects contained in this Parcelable's marshalled representation. - A bitmask of special object types marshaled by this instance; it is 0 or includes the file-descriptor bit. + A bitmask of special object types marshaled by this instance; it is 0 or includes .