-
- All Implemented Interfaces:
-
io.getstream.chat.android.ui.common.feature.messages.composer.mention.Mention
public final class Mention.Group implements Mention
A user-group mention.
-
-
Constructor Summary
Constructors Constructor Description Mention.Group(UserGroup group)
-
Method Summary
Modifier and Type Method Description MentionTypegetType()The type of the mention. StringgetDisplay()The primary display text of the mention, used when inserting a token into the composer. List<String>getTokens()All candidate @<token>forms that should match this mention in rendered message text.final UserGroupgetGroup()-
-
Method Detail
-
getType
MentionType getType()
The type of the mention.
-
getDisplay
String getDisplay()
The primary display text of the mention, used when inserting a token into the composer. Implementations must guarantee a non-empty value so autocomplete and linkification produce a stable
@tokeneven when the underlying source lacks a human-readable name.
-
getTokens
List<String> getTokens()
All candidate
@<token>forms that should match this mention in rendered message text.Defaults to
listOf(display). Override when more than one literal is valid (e.g. a group that can be referenced by either its id or its human-readable name).
-
getGroup
final UserGroup getGroup()
-
-
-
-