-
public interface Mention
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classMention.UserA user mention.
public classMention.ChannelAn
@channelmention: notifies every channel member.public classMention.HereAn
@heremention: notifies online channel members.public final classMention.RoleA role mention (e.g.
@admin).public final classMention.GroupA user-group mention.
-
Method Summary
Modifier and Type Method Description abstract MentionTypegetType()The type of the mention. abstract StringgetDisplay()The primary display text of the mention, used when inserting a token into the composer. List<String>getTokens()-
-
Method Detail
-
getType
abstract MentionType getType()
The type of the mention.
-
getDisplay
abstract 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.
-
-
-
-