-
public interface ReactionResolverResolves reaction types to emoji codes and provides the list of available reactions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classReactionResolver.Companion
-
Method Summary
Modifier and Type Method Description abstract StringemojiCode(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. -
-
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.
-
-
-
-