code: public static boolean isEmoji(String string) {
      if (string == null) return false;
  
      EmojiParser.UnicodeCandidate unicodeCandidate = EmojiParser.getNextUnicodeCandidate(string.toCharArray(), 0);
      return unicodeCandidate != null &&
              unicodeCandidate.getEmojiStartIndex() == 0 &&
              unicodeCandidate.getFitzpatrickEndIndex() == string.length();
    }
docs: Tests if a given String is an emoji.
  
  @param string the string to test
  
  @return true if the string is an emoji's unicode, false else