Package 

Class DefaultReactionResolver

  • All Implemented Interfaces:
    io.getstream.chat.android.compose.ui.util.ReactionResolver

    
    public final class DefaultReactionResolver
     implements ReactionResolver
                        

    Default implementation of ReactionResolver that provides emoji codes for based on the emoji mapping passed to the constructor.

    • Constructor Detail

      • DefaultReactionResolver

        DefaultReactionResolver(Map<String, String> emojiMapping, List<String> defaultReactions)
        Parameters:
        emojiMapping - Mapping from reaction type to emoji code
    • Method Detail

      • getSupportedReactions

         Set<String> getSupportedReactions()

        Returns the supported reaction types based on the keys in emojiMapping.

        Note: this means iteration order depends on the map's iteration order. Implementations like LinkedHashMap (Kotlin's default for mapOf) preserve insertion order.

      • getDefaultReactions

         List<String> getDefaultReactions()

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