TextAttribute
class TextAttribute : Parcelable
The data class that IME can take extra information to applications when setting the text. See InputConnection#commitText(CharSequence, int, TextAttribute) and InputConnection#setComposingRegion(int, int, TextAttribute) and InputConnection#setComposingText(CharSequence, int, TextAttribute)
Summary
| Inherited constants |
From class Parcelable
Int |
CONTENTS_FILE_DESCRIPTOR
Descriptor bit used with describeContents(): indicates that the Parcelable object's flattened representation includes a file descriptor.
|
Int |
PARCELABLE_WRITE_RETURN_VALUE
Flag for use with writeToParcel: the object being written is a return value, that is the result of a function such as "Parcelable someFunction()", "void someFunction(out Parcelable)", or "void someFunction(inout Parcelable)". Some implementations may want to release resources at this point.
|
|
Public methods
describeContents
fun describeContents(): Int
getTextConversionSuggestions
fun getTextConversionSuggestions(): MutableList<String!>
Get the list of text conversion suggestions. More text conversion details in Builder#setTextConversionSuggestions(List).
| Return |
MutableList<String!> |
List of text conversion suggestions. If the list is empty, it means that IME not set this field or IME didn't have suggestions for applications. This value cannot be null. |
writeToParcel
fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
Flatten this object in to a Parcel.
Properties