Added in API level 33

TextAttribute


class TextAttribute : Parcelable
kotlin.Any
   ↳ android.view.inputmethod.TextAttribute

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

Nested classes

Builder for creating a TextAttribute.

Inherited constants
Public methods
Int

PersistableBundle

Get the extras data.

MutableList<String!>

Get the list of text conversion suggestions.

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<TextAttribute!>

Public methods

describeContents

Added in API level 33
fun describeContents(): Int
Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR

getExtras

Added in API level 33
fun getExtras(): PersistableBundle

Get the extras data. More extras data details in Builder.setExtras(PersistableBundle).

Return
PersistableBundle Extras data. If the Bundle is empty, it means that IME not set this field or IME didn't have extras data. This value cannot be null.

getTextConversionSuggestions

Added in API level 33
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

Added in API level 33
fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

Flatten this object in to a Parcel.

Parameters
dest Parcel: This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties

CREATOR

Added in API level 33
static val CREATOR: Parcelable.Creator<TextAttribute!>