Object EmojiUtil

  • All Implemented Interfaces:

    
    public class EmojiUtil
    
                        

    Util used for detecting emojis inside messages.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static EmojiUtil INSTANCE
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Boolean isEmojiOnly(Message message) Checks whether the message consists of emoji only.
      final Boolean isSingleEmoji(Message message) Checks whether the message consists of single emoji.
      final Integer getEmojiCount(Message message) Counts the number of emoji inside a message.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.