# androidx.emoji2.text

# androidx.emoji2.text

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/emoji2/text/package-summary "View this page in Java")

## Interfaces

|--------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------|
| [EmojiCompat.GlyphChecker](https://developer.android.com/reference/kotlin/androidx/emoji2/text/EmojiCompat.GlyphChecker)             | Interface to check if a given emoji exists on the system. |
| [EmojiCompat.MetadataRepoLoader](https://developer.android.com/reference/kotlin/androidx/emoji2/text/EmojiCompat.MetadataRepoLoader) | Interface to load emoji metadata.                         |
| [EmojiCompat.SpanFactory](https://developer.android.com/reference/kotlin/androidx/emoji2/text/EmojiCompat.SpanFactory)               | Factory class that creates the EmojiSpans.                |

## Classes

|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [DefaultEmojiCompatConfig](https://developer.android.com/reference/kotlin/androidx/emoji2/text/DefaultEmojiCompatConfig)                                                                     | The default config will use downloadable fonts to fetch the emoji compat font file.                                                                                                                                                                                                                |
| [EmojiCompat](https://developer.android.com/reference/kotlin/androidx/emoji2/text/EmojiCompat)                                                                                               | Main class to keep Android devices up to date with the newest emojis by adding[EmojiSpan](https://developer.android.com/reference/kotlin/androidx/emoji2/text/EmojiSpan)s to a given[CharSequence](https://developer.android.com/reference/java/lang/CharSequence.html).                           |
| [EmojiCompat.Config](https://developer.android.com/reference/kotlin/androidx/emoji2/text/EmojiCompat.Config)                                                                                 | Configuration class for EmojiCompat.                                                                                                                                                                                                                                                               |
| [EmojiCompat.InitCallback](https://developer.android.com/reference/kotlin/androidx/emoji2/text/EmojiCompat.InitCallback)                                                                     | Listener class for the initialization of the EmojiCompat.                                                                                                                                                                                                                                          |
| [EmojiCompat.MetadataRepoLoaderCallback](https://developer.android.com/reference/kotlin/androidx/emoji2/text/EmojiCompat.MetadataRepoLoaderCallback)                                         | Callback to inform EmojiCompat about the state of the metadata load.                                                                                                                                                                                                                               |
| [EmojiCompatInitializer](https://developer.android.com/reference/kotlin/androidx/emoji2/text/EmojiCompatInitializer)                                                                         | Initializer for configuring EmojiCompat with the system installed downloadable font provider.                                                                                                                                                                                                      |
| [EmojiSpan](https://developer.android.com/reference/kotlin/androidx/emoji2/text/EmojiSpan)                                                                                                   | Base span class for the emoji replacement.                                                                                                                                                                                                                                                         |
| [FontRequestEmojiCompatConfig](https://developer.android.com/reference/kotlin/androidx/emoji2/text/FontRequestEmojiCompatConfig)                                                             | [EmojiCompat.Config](https://developer.android.com/reference/kotlin/androidx/emoji2/text/EmojiCompat.Config)implementation that asynchronously fetches the required font and the metadata using a[FontRequest](https://developer.android.com/reference/kotlin/androidx/core/provider/FontRequest). |
| [FontRequestEmojiCompatConfig.ExponentialBackoffRetryPolicy](https://developer.android.com/reference/kotlin/androidx/emoji2/text/FontRequestEmojiCompatConfig.ExponentialBackoffRetryPolicy) | A retry policy implementation that doubles the amount of time in between retries.                                                                                                                                                                                                                  |
| [FontRequestEmojiCompatConfig.RetryPolicy](https://developer.android.com/reference/kotlin/androidx/emoji2/text/FontRequestEmojiCompatConfig.RetryPolicy)                                     | Retry policy used when the font provider is not ready to give the font file.                                                                                                                                                                                                                       |
| [MetadataRepo](https://developer.android.com/reference/kotlin/androidx/emoji2/text/MetadataRepo)                                                                                             | Class to hold the emoji metadata required to process and draw emojis.                                                                                                                                                                                                                              |
| [TypefaceEmojiRasterizer](https://developer.android.com/reference/kotlin/androidx/emoji2/text/TypefaceEmojiRasterizer)                                                                       | Information about a single emoji.                                                                                                                                                                                                                                                                  |