TextAttributeCompat

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

Types

Link copied to clipboard
class Builder
Builder for creating a TextAttributeCompat.

Functions

Link copied to clipboard
@NonNull
open fun getExtras(): @NonNull PersistableBundle
Get the extras data.
Link copied to clipboard
@NonNull
open fun getTextConversionSuggestions(): @NonNull List<String>
Get the list of text conversion suggestions.
Link copied to clipboard
Get whether the text is undergoing a text candidate selection.
Link copied to clipboard
@Nullable
open fun unwrap(): @Nullable Any
Gets the underlying framework android.view.inputmethod.TextAttribute object.
Link copied to clipboard
@Nullable
open fun wrap(@Nullable textAttribute: @Nullable Any): @Nullable TextAttributeCompat
Creates an instance from a framework android.view.inputmethod.TextAttribute object.