O Google tem o compromisso de promover a igualdade racial para as comunidades negras. Saiba como.

Config

abstract class Config
kotlin.Any
   ↳ androidx.emoji.text.EmojiCompat.Config

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

Summary

Protected constructors
<init>(@NonNull metadataLoader: EmojiCompat.MetadataRepoLoader)

Default constructor.

Public methods
open EmojiCompat.Config!

Registers an initialization callback.

open EmojiCompat.Config!
setEmojiSpanIndicatorColor(@ColorInt color: Int)

Sets the color used as emoji span indicator.

open EmojiCompat.Config!
setEmojiSpanIndicatorEnabled(emojiSpanIndicatorEnabled: Boolean)

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

open EmojiCompat.Config
setGlyphChecker(@NonNull glyphChecker: EmojiCompat.GlyphChecker)

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

open EmojiCompat.Config!

Determines the strategy to start loading the metadata.

open EmojiCompat.Config!
setReplaceAll(replaceAll: Boolean)

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

open EmojiCompat.Config!
setUseEmojiAsDefaultStyle(useEmojiAsDefaultStyle: Boolean)

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

open EmojiCompat.Config!
setUseEmojiAsDefaultStyle(useEmojiAsDefaultStyle: Boolean, @Nullable emojiAsDefaultStyleExceptions: MutableList<Int!>?)

open EmojiCompat.Config!

Unregisters a callback that was added before.

Protected methods
EmojiCompat.MetadataRepoLoader!

Returns the MetadataRepoLoader.

Protected constructors

<init>

protected Config(@NonNull metadataLoader: EmojiCompat.MetadataRepoLoader)

Default constructor.

Parameters
metadataLoader EmojiCompat.MetadataRepoLoader: MetadataRepoLoader instance, cannot be null

Public methods

registerInitCallback

open fun registerInitCallback(@NonNull initCallback: EmojiCompat.InitCallback): EmojiCompat.Config!

Registers an initialization callback.

Parameters
initCallback EmojiCompat.InitCallback: the initialization callback to register, cannot be null
Return
EmojiCompat.Config! EmojiCompat.Config instance

setEmojiSpanIndicatorColor

open fun setEmojiSpanIndicatorColor(@ColorInt color: Int): EmojiCompat.Config!

Sets the color used as emoji span indicator. The default value is Color.GREEN.

setEmojiSpanIndicatorEnabled

open fun setEmojiSpanIndicatorEnabled(emojiSpanIndicatorEnabled: Boolean): EmojiCompat.Config!

Determines whether a background will be drawn for the emojis that are found and replaced by EmojiCompat. Should be used only for debugging purposes. The indicator color can be set using setEmojiSpanIndicatorColor(int).

Parameters
emojiSpanIndicatorEnabled Boolean: when true a background is drawn for each emoji that is replaced

setGlyphChecker

@NonNull open fun setGlyphChecker(@NonNull glyphChecker: EmojiCompat.GlyphChecker): EmojiCompat.Config

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

Parameters
glyphChecker EmojiCompat.GlyphChecker: GlyphChecker instance to be used.

setMetadataLoadStrategy

open fun setMetadataLoadStrategy(strategy: Int): EmojiCompat.Config!

Determines the strategy to start loading the metadata. By default will start loading the metadata during . When set to , you should call

Default implementations of EmojiCompat.MetadataRepoLoader start a thread during their