public final class EmojiManager extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
destroy()
Destroys the EmojiManager.
|
static EmojiManager |
getInstance() |
static void |
install(EmojiProvider provider)
Installs the given EmojiProvider.
|
static void |
release()
Releases all data associated with installed
Emojis. |
void |
replaceWithImages(Context context,
Spannable text,
float emojiSize,
float defaultEmojiSize) |
public static EmojiManager getInstance()
public static void install(@NonNull EmojiProvider provider)
provider - the provider that should be installed.public static void destroy()
Emojis. For the existing EmojiProviders this
means the memory-heavy emoji sheet.destroy()public static void release()
Emojis. For the existing EmojiProviders this
means the memory-heavy emoji sheet.
In contrast to destroy(), this does not destroy the internal
data structures and thus, you do not need to install(EmojiProvider) again before using the EmojiManager.destroy()