Package 

Interface Mention


  • 
    public interface Mention
    
                        

    Represents a mention token inside the message composer.

    Built-in types are User, Channel, Here, Role, and Group. You can extend this interface to define custom mentions if needed.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public final class Mention.User

      A user mention.

      public class Mention.Channel

      An @channel mention: notifies every channel member.

      public class Mention.Here

      An @here mention: notifies online channel members.

      public final class Mention.Role

      A role mention (e.g. @admin).

      public final class Mention.Group

      A user-group mention.

    • Method Summary

      Modifier and Type Method Description
      abstract MentionType getType() The type of the mention.
      abstract String getDisplay() The primary display text of the mention, used when inserting a token into the composer.
      List<String> getTokens()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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 @token even when the underlying source lacks a human-readable name.