Object EmojiUtil
-
- All Implemented Interfaces:
public class EmojiUtilUtil used for detecting emojis inside messages.
-
-
Method Summary
Modifier and Type Method Description final BooleanisEmojiOnly(Message message)Checks whether the message consists of emoji only. final BooleanisSingleEmoji(Message message)Checks whether the message consists of single emoji. final IntegergetEmojiCount(Message message)Counts the number of emoji inside a message. -
-
Method Detail
-
isEmojiOnly
final Boolean isEmojiOnly(Message message)
Checks whether the message consists of emoji only.
- Parameters:
message- The message that was sent/received by user.
-
isSingleEmoji
final Boolean isSingleEmoji(Message message)
Checks whether the message consists of single emoji.
- Parameters:
message- The message that was sent/received by user.
-
getEmojiCount
final Integer getEmojiCount(Message message)
Counts the number of emoji inside a message.
- Returns:
The number of emojis inside a message.
-
-
-
-