public class AndroidEmoji
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AndroidEmoji.EmojiImageSpan |
Constructor and Description |
---|
AndroidEmoji() |
Modifier and Type | Method and Description |
---|---|
static void |
ensure(android.text.Spannable spannable) |
static void |
ensure(android.text.Spannable spannable,
float textSize) |
static java.lang.CharSequence |
ensure(java.lang.String input) |
static int |
getEmojiCode(int index) |
static int |
getEmojiCount(java.lang.String input) |
static android.graphics.drawable.Drawable |
getEmojiDrawable(android.content.Context context,
int index) |
static java.util.List<io.rong.imkit.conversation.extension.component.emoticon.AndroidEmoji.EmojiInfo> |
getEmojiList() |
static int |
getEmojiSize() |
static void |
init(android.content.Context context) |
static boolean |
isEmoji(java.lang.String input) |
static android.text.SpannableStringBuilder |
replaceEmojiWithText(android.text.Spannable spannable) |
static java.lang.String |
replaceEmojiWithText(java.lang.String input) |
public static void init(android.content.Context context)
public static java.util.List<io.rong.imkit.conversation.extension.component.emoticon.AndroidEmoji.EmojiInfo> getEmojiList()
public static int getEmojiCount(java.lang.String input)
public static java.lang.CharSequence ensure(java.lang.String input)
public static boolean isEmoji(java.lang.String input)
public static void ensure(android.text.Spannable spannable, float textSize)
public static void ensure(android.text.Spannable spannable)
public static android.text.SpannableStringBuilder replaceEmojiWithText(android.text.Spannable spannable)
public static java.lang.String replaceEmojiWithText(java.lang.String input)
public static int getEmojiSize()
public static int getEmojiCode(int index)
public static android.graphics.drawable.Drawable getEmojiDrawable(android.content.Context context, int index)