Package 

Class Mention.Group

  • 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
      MentionType getType() The type of the mention.
      String getDisplay() 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 UserGroup getGroup()
      • Methods inherited from class java.lang.Object

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

      • Mention.Group

        Mention.Group(UserGroup group)
        Parameters:
        group - The group being mentioned.
    • Method Detail

      • 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 @token even 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).