EmojiCompatConfigurationView


interface EmojiCompatConfigurationView

Known direct subclasses
AppCompatAutoCompleteTextView

A AutoCompleteTextView which supports compatible features on older versions of the platform, including:

AppCompatButton

A Button which supports compatible features on older versions of the platform, including:

AppCompatCheckBox

A CheckBox which supports compatible features on older versions of the platform, including:

AppCompatCheckedTextView

A CheckedTextView which supports compatible features on older versions of the platform, including:

AppCompatEditText

A EditText which supports compatible features on older versions of the platform, including:

AppCompatMultiAutoCompleteTextView

A MultiAutoCompleteTextView which supports compatible features on older version of the platform, including:

AppCompatRadioButton

A RadioButton which supports compatible features on older versions of the platform, including:

AppCompatTextView

A TextView which supports compatible features on older versions of the platform, including:

AppCompatToggleButton

A ToggleButton which supports compatible features on older versions of the platform, including:

SwitchCompat

SwitchCompat is a complete backport of the core Switch widget that brings the visuals and functionality of the toggle widget to older versions of the Android platform.

Known indirect subclasses
EmojiAppCompatButton

AppCompatButton widget enhanced with emoji capability by using EmojiTextViewHelper.

EmojiAppCompatEditText

AppCompatEditText widget enhanced with emoji capability by using EmojiEditTextHelper.

EmojiAppCompatTextView

AppCompatTextView widget enhanced with emoji capability by using EmojiTextViewHelper.

GuidedActionAppCompatEditText

A custom EditText that satisfies the IME key monitoring requirements of GuidedStepFragment.

MotionButton

A MotionButton is an AppCompatButton that can round its edges.


Interface for Views that expose EmojiCompat configuration.

Summary

Public functions

Boolean
Unit

Configure emoji fallback behavior using EmojiCompat.

Public functions

isEmojiCompatEnabled

Added in 1.4.0
fun isEmojiCompatEnabled(): Boolean
Returns
Boolean

the current enabled state, set via setEmojiCompatEnabled

setEmojiCompatEnabled

Added in 1.4.0
fun setEmojiCompatEnabled(enabled: Boolean): Unit

Configure emoji fallback behavior using EmojiCompat. When enabled, this View will attempt to use EmojiCompat to enabled missing emojis. When disabled, this View will not display missing emojis using EmojiCompat. EmojiCompat must be correctly configured on a device for this to have an effect, which will happen by default if a correct downloadable fonts provider is installed on the device. If you manually configure EmojiCompat by calling EmojiCompat init after this View is constructed, you may call this method again to enable EmojiCompat on this text view. For more information about EmojiCompat configuration see the emoji2 module.

Parameters
enabled: Boolean

if true, display missing emoji using EmojiCompat, otherwise display missing emoji using a fallback glyph "□" (known as tofu)