SupportedReactions
class SupportedReactions(context: Context, val reactions: Map<String, SupportedReactions.ReactionDrawable> = mapOf(
LOVE to loveDrawable(context),
THUMBS_UP to thumbsUpDrawable(context),
THUMBS_DOWN to thumbsDownDrawable(context),
LOL to lolDrawable(context),
WUT to wutDrawable(context),
))
Class allowing to define set of supported reactions. You can customize reactions by providing your own implementation of this class to ChatUI.supportedReactions.
Parameters
context
The context to load drawable resources.
reactions
Map
Constructors
Link copied to clipboard
constructor(context: Context, reactions: Map<String, SupportedReactions.ReactionDrawable> = mapOf(
LOVE to loveDrawable(context),
THUMBS_UP to thumbsUpDrawable(context),
THUMBS_DOWN to thumbsDownDrawable(context),
LOL to lolDrawable(context),
WUT to wutDrawable(context),
))
Types
Link copied to clipboard
object DefaultReactionTypes
The reaction types we support by default.
Link copied to clipboard
Contains drawables for normal and selected reaction states.