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 instance. Map with keys corresponding to reaction type, and value corresponding to ReactionDrawable object. By default it's initialized with standard reactions.

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

The reaction types we support by default.

Link copied to clipboard
class ReactionDrawable(inactiveDrawable: Drawable, activeDrawable: Drawable)

Contains drawables for normal and selected reaction states.

Properties

Link copied to clipboard

Functions