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 ( ) ; }
Tests if a given String is an emoji .