Package 

Class Mention.User

  • All Implemented Interfaces:
    io.getstream.chat.android.ui.common.feature.messages.composer.mention.Mention

    
    public final class Mention.User
     implements Mention
                        

    A user mention.

    • Constructor Summary

      Constructors 
      Constructor Description
      Mention.User(User user)
    • 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.
      final User getUser()
      List<String> getTokens()
      • Methods inherited from class java.lang.Object

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

      • Mention.User

        Mention.User(User user)
        Parameters:
        user - The user 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.