Class RongMentionManager

    • Constructor Detail

    • Method Detail

      • createInstance

         void createInstance(ChannelType conversationType, String targetId, EditText editText)
      • destroyInstance

         void destroyInstance(ChannelType conversationType, String targetId, EditText editText)
      • setInputEditText

         void setInputEditText(ChannelIdentifier id, EditText editText)
      • mentionMember

         void mentionMember(ChannelType conversationType, String targetId, String userId)
      • onTextChanged

         void onTextChanged(Context context, ChannelType conversationType, String targetId, int cursorPos, int offset, String text, EditText editText)

        Called when the input field text changes.

        Parameters:
        conversationType - conversation type
        targetId - target ID
        cursorPos - cursor position at the start of text input
        offset - text change amount: positive for additions, negative for deletions
        text - text content
      • applyMentionInfo

         void applyMentionInfo(MessageContent messageContent, EditText editText)

        Applies @ mention info to the specified message content (no Message wrapper needed).

        Parameters:
        messageContent - the message content to apply mention info to
        editText - the current input field
      • onDeleteClick

         void onDeleteClick(ChannelType type, String targetId, EditText editText, int cursorPos)
      • setGroupMembersProvider

         void setGroupMembersProvider(RongMentionManager.IGroupMembersProvider groupMembersProvider)

        Sets the group members provider.

        The '@' mention feature and VoIP feature need group member information for the member selection UI. Developers must set this provider and return group member info via .

        Parameters:
        groupMembersProvider - the group members provider.