BundledEmojiCompatConfig


class BundledEmojiCompatConfig : EmojiCompat.Config


EmojiCompat.Config implementation that loads the metadata using AssetManager and bundled resources.

EmojiCompat.init(new BundledEmojiCompatConfig(context));
See also
EmojiCompat

Summary

Public constructors

Default constructor.

Inherited functions

From androidx.emoji.text.EmojiCompat.Config
EmojiCompat.MetadataRepoLoader!

Returns the MetadataRepoLoader.

EmojiCompat.Config!

Registers an initialization callback.

EmojiCompat.Config!

Sets the color used as emoji span indicator.

EmojiCompat.Config!
setEmojiSpanIndicatorEnabled(emojiSpanIndicatorEnabled: Boolean)

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

EmojiCompat.Config

The interface that is used by EmojiCompat in order to check if a given emoji can be rendered by the system.

EmojiCompat.Config!

Determines the strategy to start loading the metadata.

EmojiCompat.Config!
setReplaceAll(replaceAll: Boolean)

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

EmojiCompat.Config!
setUseEmojiAsDefaultStyle(useEmojiAsDefaultStyle: Boolean)

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

EmojiCompat.Config!
setUseEmojiAsDefaultStyle(
    useEmojiAsDefaultStyle: Boolean,
    emojiAsDefaultStyleExceptions: (Mutable)List<Int!>?
)
EmojiCompat.Config!

Unregisters a callback that was added before.

Public constructors

BundledEmojiCompatConfig

Added in 1.0.0
BundledEmojiCompatConfig(context: Context)

Default constructor.

Parameters
context: Context

Context instance