Package 

Interface ReactionResolver


  • 
    public interface ReactionResolver
    
                        

    Resolves reaction types to emoji codes and provides the list of available reactions.

    • Method Summary

      Modifier and Type Method Description
      abstract String emojiCode(String type) Returns the emoji code for the given reaction type, or null if the type is not supported.
      abstract Set<String> getSupportedReactions() All the supported reaction types.
      abstract List<String> getDefaultReactions() A small set of commonly used reaction types, typically shown for quick access in the UI.
      • Methods inherited from class java.lang.Object

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

      • emojiCode

         abstract String emojiCode(String type)

        Returns the emoji code for the given reaction type, or null if the type is not supported.

        Parameters:
        type - The reaction type (e.g.
      • getSupportedReactions

         abstract Set<String> getSupportedReactions()

        All the supported reaction types.

        Iteration order of this set will be used as reaction display order in default components. If order is important, use an implementation with predictable ordering, like LinkedHashMap (as in DefaultReactionResolver.defaultEmojiMapping) or LinkedHashSet.

      • getDefaultReactions

         abstract List<String> getDefaultReactions()

        A small set of commonly used reaction types, typically shown for quick access in the UI.