Class SupportedReactions
-
- All Implemented Interfaces:
public final class SupportedReactionsClass allowing to define set of supported reactions. You can customize reactions by providing your own implementation of this class to ChatUI.supportedReactions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSupportedReactions.ReactionDrawableContains drawables for normal and selected reaction states.
public classSupportedReactions.DefaultReactionTypesThe reaction types we support by default.
-
Constructor Summary
Constructors Constructor Description SupportedReactions(Context context, Map<String, SupportedReactions.ReactionDrawable> reactions)
-
Method Summary
Modifier and Type Method Description final List<String>getTypes()final Map<String, SupportedReactions.ReactionDrawable>getReactions()final SupportedReactions.ReactionDrawablegetReactionDrawable(String type)-
-
Constructor Detail
-
SupportedReactions
SupportedReactions(Context context, Map<String, SupportedReactions.ReactionDrawable> reactions)
- Parameters:
context- The context to load drawable resources.reactions- Map<String, ReactionDrawable> instance.
-
-
Method Detail
-
getReactions
final Map<String, SupportedReactions.ReactionDrawable> getReactions()
-
getReactionDrawable
final SupportedReactions.ReactionDrawable getReactionDrawable(String type)
-
-
-
-