public static List<String> extractEmojis(String input) {
    List<UnicodeCandidate> emojis = getUnicodeCandidates(input);
    List<String> result = new ArrayList<String>();
    for (UnicodeCandidate emoji : emojis) {
      if (emoji.getEmoji().supportsFitzpatrick() && emoji.hasFitzpatrick()) {
        result.add(emoji.getEmoji().getUnicode(emoji.getFitzpatrick()));
      } else {
        result.add(emoji.getEmoji().getUnicode());
      }
    }
    return result;
  }
Detects all unicode emojis in input string and replaces them with the
return value of transformer.transform()

@param input the string to process
@param transformer emoji transformer to apply to each emoji

@return input string with all emojis transformed
src/main/java/com/vdurmont/emoji/EmojiParser.java