TextAttributeCompat


class TextAttributeCompat


Helper for accessing features in android.view.inputmethod.TextAttribute in a backwards compatible fashion.

Summary

Nested types

Builder for creating a TextAttributeCompat.

Public functions

PersistableBundle

Get the extras data.

(Mutable)List<String!>

Get the list of text conversion suggestions.

Boolean

Get whether the text is undergoing a text candidate selection.

Any?

Gets the underlying framework android.view.inputmethod.TextAttribute object.

java-static TextAttributeCompat?
wrap(textAttribute: Any?)

Creates an instance from a framework android.view.inputmethod.TextAttribute object.

Public functions

getExtras

fun getExtras(): PersistableBundle

Get the extras data.

getTextConversionSuggestions

fun getTextConversionSuggestions(): (Mutable)List<String!>

Get the list of text conversion suggestions.

isTextSuggestionSelected

fun isTextSuggestionSelected(): Boolean

Get whether the text is undergoing a text candidate selection.

unwrap

fun unwrap(): Any?

Gets the underlying framework android.view.inputmethod.TextAttribute object.

Returns
Any?

an equivalent android.view.inputmethod.TextAttribute object, or null if not supported.

wrap

java-static fun wrap(textAttribute: Any?): TextAttributeCompat?

Creates an instance from a framework android.view.inputmethod.TextAttribute object.

Parameters
textAttribute: Any?

an android.view.inputmethod.TextAttribute object, or null.

Returns
TextAttributeCompat?

an equivalent TextAttributeCompat object, or null if not supported.