Mention Span
class MentionSpan @JvmOverloads constructor(context: Context, mentionType: MentionType = MentionType.USERS, val trigger: String, val value: String, val mentionedUser: User, uiConfig: TextUIConfig, mentionedCurrentUserUIConfig: TextUIConfig? = null) : MetricAffectingSpan
The text with a MentionSpan attached will be bold and clickable. MentionSpan provides the User data that is relevant to the marked-up text.
Since
3.0.0
Constructors
Link copied to clipboard
fun MentionSpan(context: Context, trigger: String, value: String, mentionedUser: User, uiConfig: TextUIConfig, mentionedCurrentUserUIConfig: TextUIConfig?)
Constructor
Link copied to clipboard
fun MentionSpan(context: Context, mentionType: MentionType = MentionType.USERS, trigger: String, value: String, mentionedUser: User, uiConfig: TextUIConfig, mentionedCurrentUserUIConfig: TextUIConfig? = null)