belongs to Maven artifact com.android.support:support-emoji:28.0.0-alpha1
EmojiCompat.Config
public
static
abstract
class
EmojiCompat.Config
extends Object
java.lang.Object | |
↳ | android.support.text.emoji.EmojiCompat.Config |
![]() |
Configuration class for EmojiCompat. Changes to the values will be ignored after
init(Config)
is called.
See also:
Summary
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 |
Inherited methods | |
---|---|
![]()
java.lang.Object
|