added in version 26.1.0
belongs to Maven artifact


public static abstract class EmojiCompat.Config
extends Object

Known Direct Subclasses

Configuration class for EmojiCompat. Changes to the values will be ignored after init(Config) is called.


Protected constructors

EmojiCompat.Config(EmojiCompat.MetadataRepoLoader metadataLoader)

Default constructor.

Public methods

EmojiCompat.Config registerInitCallback(EmojiCompat.InitCallback initCallback)

Registers an initialization callback.

EmojiCompat.Config setEmojiSpanIndicatorColor(int color)

Sets the color used as emoji span indicator.

EmojiCompat.Config setEmojiSpanIndicatorEnabled(boolean emojiSpanIndicatorEnabled)

Determines whether a background will be drawn for the emojis that are found and replaced by EmojiCompat.

EmojiCompat.Config setReplaceAll(boolean replaceAll)

Determines whether EmojiCompat should replace all the emojis it finds with the EmojiSpans.

EmojiCompat.Config setUseEmojiAsDefaultStyle(boolean useEmojiAsDefaultStyle)

Determines whether EmojiCompat should use the emoji presentation style for emojis that have text style as default.

EmojiCompat.Config setUseEmojiAsDefaultStyle(boolean useEmojiAsDefaultStyle, List<Integer> emojiAsDefaultStyleExceptions)
EmojiCompat.Config unregisterInitCallback(EmojiCompat.InitCallback initCallback)

Unregisters a callback that was added before.

Protected methods

final EmojiCompat.MetadataRepoLoader getMetadataRepoLoader()

Returns the EmojiCompat.MetadataRepoLoader.

Inherited methods

From class java.lang.Object

Protected constructors


added in version 26.1.0
EmojiCompat.Config (EmojiCompat.MetadataRepoLoader metadataLoader)

Default constructor.