BundledEmojiCompatConfig


public class BundledEmojiCompatConfig extends 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 methods

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

Returns the MetadataRepoLoader.

EmojiCompat.Config

Registers an initialization callback.

EmojiCompat.Config

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.

@NonNull 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(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,
    @Nullable List<Integer> emojiAsDefaultStyleExceptions
)
EmojiCompat.Config

Unregisters a callback that was added before.

Public constructors

BundledEmojiCompatConfig

Added in 1.0.0
public BundledEmojiCompatConfig(@NonNull Context context)

Default constructor.

Parameters
@NonNull Context context

Context instance