DefaultReactionResolver

class DefaultReactionResolver(emojiMapping: Map<String, String?> = defaultEmojiMapping, val defaultReactions: List<String> = defaultQuickReactions) : ReactionResolver

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

Parameters

emojiMapping

Mapping from reaction type to emoji code

Constructors

Link copied to clipboard
constructor(emojiMapping: Map<String, String?> = defaultEmojiMapping, defaultReactions: List<String> = defaultQuickReactions)

Properties

Link copied to clipboard
open override val defaultReactions: List<String>

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

Link copied to clipboard
open override val supportedReactions: Set<String>

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

Functions

Link copied to clipboard
open override fun emojiCode(type: String): String?