Package io.rong.imkit.feature.mention

## Class RongMentionManager

- All Implemented Interfaces:

      public class RongMentionManager

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `public interface` | `RongMentionManager.IGroupMembersProvider` |
    `public interface` | `RongMentionManager.IGroupMemberCallback` |

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `public final static String` | `MENTION_ALL_USER_ID` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `static RongMentionManager` | `getInstance()` |
    `void` | `createInstance(ConversationType conversationType, String targetId, EditText editText)` |
    `void` | `destroyInstance(ConversationType conversationType, String targetId, EditText editText)` |
    `void` | `setInputEditText(ConversationIdentifier id, EditText editText)` |
    `void` | `mentionMember(ConversationType conversationType, String targetId, String userId)` |
    `void` | `mentionMember(UserInfo userInfo)` |
    `String` | `getMentionBlockInfo()` |
    `MentionInstance` | `obtainMentionInstance(EditText editText)` |
    `void` | `onTextChanged(Context context, ConversationType conversationType, String targetId, int cursorPos, int offset, String text, EditText editText)` | 当输入框文本变化时，回调此方法。
    `void` | `onSendToggleClick(Message message, EditText editText)` |
    `void` | `onClickEditMessageConfirm(Message message, EditText editText)` |
    `void` | `onDeleteClick(ConversationType type, String targetId, EditText editText, int cursorPos)` |
    `RongMentionManager.IGroupMembersProvider` | `getGroupMembersProvider()` |
    `void` | `setMentionedInputListener(IMentionedInputListener listener)` |
    `void` | `setAddMentionedMemberListener(IAddMentionedMemberListener listener)` |
    `void` | `setGroupMembersProvider(RongMentionManager.IGroupMembersProvider groupMembersProvider)` | 设置群组成员提供者。 '@' 功能和VoIP功能在选人界面,需要知道群组内成员信息,开发者需要设置该提供者。 开发者需要在回调中获取到群成员信息 并通过中的方法设置到 sdk 中

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

  - ### Method Detail

    - #### getInstance

           static RongMentionManager getInstance()

    - #### createInstance

           void createInstance(ConversationType conversationType, String targetId, EditText editText)

    - #### destroyInstance

           void destroyInstance(ConversationType conversationType, String targetId, EditText editText)

    - #### setInputEditText

           void setInputEditText(ConversationIdentifier id, EditText editText)

    - #### mentionMember

           void mentionMember(ConversationType conversationType, String targetId, String userId)

    - #### mentionMember

           void mentionMember(UserInfo userInfo)

    - #### getMentionBlockInfo

           String getMentionBlockInfo()

    - #### obtainMentionInstance

           MentionInstance obtainMentionInstance(EditText editText)

    - #### onTextChanged

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

      当输入框文本变化时，回调此方法。

      Parameters:
        `conversationType` - 会话类型
        `targetId` - 目标 id
        `cursorPos` - 输入文本时，光标位置初始位置
        `offset` - 文本的变化量：增加时为正数，减少是为负数
        `text` - 文本内容

    - #### onSendToggleClick

           void onSendToggleClick(Message message, EditText editText)

    - #### onClickEditMessageConfirm

           void onClickEditMessageConfirm(Message message, EditText editText)

    - #### onDeleteClick

           void onDeleteClick(ConversationType type, String targetId, EditText editText, int cursorPos)

    - #### getGroupMembersProvider

           RongMentionManager.IGroupMembersProvider getGroupMembersProvider()

    - #### setMentionedInputListener

           void setMentionedInputListener(IMentionedInputListener listener)

    - #### setAddMentionedMemberListener

           void setAddMentionedMemberListener(IAddMentionedMemberListener listener)

    - #### setGroupMembersProvider

           void setGroupMembersProvider(RongMentionManager.IGroupMembersProvider groupMembersProvider)

      设置群组成员提供者。

      '@' 功能和VoIP功能在选人界面,需要知道群组内成员信息,开发者需要设置该提供者。 开发者需要在回调中获取到群成员信息 并通过中的方法设置到 sdk 中

      Parameters:
        `groupMembersProvider` - 群组成员提供者。