# BundledEmojiCompatConfig

Artifact: [androidx.emoji:emoji-bundled](https://developer.android.com/jetpack/androidx/releases/emoji) [View Source](https://cs.android.com/search?q=file:androidx/emoji/bundled/BundledEmojiCompatConfig.java+class:androidx.emoji.bundled.BundledEmojiCompatConfig) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/emoji#1.0.0)

*** ** * ** ***


```
public class BundledEmojiCompatConfig extends EmojiCompat.Config
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.emoji.text.EmojiCompat.Config](https://developer.android.com/reference/androidx/emoji/text/EmojiCompat.Config) ||
|   | ↳ | [androidx.emoji.bundled.BundledEmojiCompatConfig](https://developer.android.com/reference/androidx/emoji/bundled/BundledEmojiCompatConfig) |

*** ** * ** ***

`https://developer.android.com/reference/androidx/emoji/text/EmojiCompat.Config` implementation that loads the metadata using AssetManager and bundled resources.

```
EmojiCompat.init(new BundledEmojiCompatConfig(context));
```

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/emoji/text/EmojiCompat` |   |

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/emoji/bundled/BundledEmojiCompatConfig#BundledEmojiCompatConfig(android.content.Context)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/content/Context.html context)` Default constructor. |

| ### Inherited methods |
|---|
| From [androidx.emoji.text.EmojiCompat.Config](https://developer.android.com/reference/androidx/emoji/text/EmojiCompat.Config) |---|---| | `final https://developer.android.com/reference/androidx/emoji/text/EmojiCompat.MetadataRepoLoader` | `https://developer.android.com/reference/androidx/emoji/text/EmojiCompat.Config#getMetadataRepoLoader()()` Returns the `https://developer.android.com/reference/androidx/emoji/text/EmojiCompat.MetadataRepoLoader`. | | `https://developer.android.com/reference/androidx/emoji/text/EmojiCompat.Config` | `https://developer.android.com/reference/androidx/emoji/text/EmojiCompat.Config#registerInitCallback(androidx.emoji.text.EmojiCompat.InitCallback)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/emoji/text/EmojiCompat.InitCallback initCallback)` Registers an initialization callback. | | `https://developer.android.com/reference/androidx/emoji/text/EmojiCompat.Config` | `https://developer.android.com/reference/androidx/emoji/text/EmojiCompat.Config#setEmojiSpanIndicatorColor(int)(@https://developer.android.com/reference/androidx/annotation/ColorInt int color)` Sets the color used as emoji span indicator. | | `https://developer.android.com/reference/androidx/emoji/text/EmojiCompat.Config` | `https://developer.android.com/reference/androidx/emoji/text/EmojiCompat.Config#setEmojiSpanIndicatorEnabled(boolean)(boolean emojiSpanIndicatorEnabled)` Determines whether a background will be drawn for the emojis that are found and replaced by EmojiCompat. | | `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/emoji/text/EmojiCompat.Config` | `https://developer.android.com/reference/androidx/emoji/text/EmojiCompat.Config#setGlyphChecker(androidx.emoji.text.EmojiCompat.GlyphChecker)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/emoji/text/EmojiCompat.GlyphChecker glyphChecker)` The interface that is used by EmojiCompat in order to check if a given emoji can be rendered by the system. | | `https://developer.android.com/reference/androidx/emoji/text/EmojiCompat.Config` | `https://developer.android.com/reference/androidx/emoji/text/EmojiCompat.Config#setMetadataLoadStrategy(int)(int strategy)` Determines the strategy to start loading the metadata. | | `https://developer.android.com/reference/androidx/emoji/text/EmojiCompat.Config` | `https://developer.android.com/reference/androidx/emoji/text/EmojiCompat.Config#setReplaceAll(boolean)(boolean replaceAll)` Determines whether EmojiCompat should replace all the emojis it finds with the EmojiSpans. | | `https://developer.android.com/reference/androidx/emoji/text/EmojiCompat.Config` | `https://developer.android.com/reference/androidx/emoji/text/EmojiCompat.Config#setUseEmojiAsDefaultStyle(boolean)(boolean useEmojiAsDefaultStyle)` Determines whether EmojiCompat should use the emoji presentation style for emojis that have text style as default. | | `https://developer.android.com/reference/androidx/emoji/text/EmojiCompat.Config` | `https://developer.android.com/reference/androidx/emoji/text/EmojiCompat.Config#setUseEmojiAsDefaultStyle(boolean,java.util.List<java.lang.Integer>)( boolean useEmojiAsDefaultStyle, @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/java/lang/Integer.html> emojiAsDefaultStyleExceptions )` | | `https://developer.android.com/reference/androidx/emoji/text/EmojiCompat.Config` | `https://developer.android.com/reference/androidx/emoji/text/EmojiCompat.Config#unregisterInitCallback(androidx.emoji.text.EmojiCompat.InitCallback)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/emoji/text/EmojiCompat.InitCallback initCallback)` Unregisters a callback that was added before. | |

## Public constructors

### BundledEmojiCompatConfig

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/emoji#1.0.0)

```
public BundledEmojiCompatConfig(@NonNull Context context)
```

Default constructor.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/content/Context.html context` | Context instance |