MentionSpan

fun MentionSpan(    context: Context,     trigger: String,     value: String,     mentionedUser: User,     uiConfig: TextUIConfig,     mentionedCurrentUserUIConfig: TextUIConfig?)

Constructor

Since

3.0.0

Parameters

context

The Context this spannable is currently associated with

trigger

The text to trigger mention

value

The text to be mentioned

mentionedUser

The User relevant to this mention-spanned text

uiConfig

The mention ui config.

mentionedCurrentUserUIConfig

The mention ui config if current user is mentioned


fun MentionSpan(    context: Context,     mentionType: MentionType = MentionType.USERS,     trigger: String,     value: String,     mentionedUser: User,     uiConfig: TextUIConfig,     mentionedCurrentUserUIConfig: TextUIConfig? = null)