Package io.rong.imkit.feature.reference

## Class ReferenceManager

- All Implemented Interfaces:

      public class ReferenceManager

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `public interface` | `ReferenceManager.ReferenceStatusListener` |

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `ReferenceManager()` |

  - ### Enum Constant Summary

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

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `static ReferenceManager` | `getInstance()` |
    `void` | `setReferenceStatusListener(ReferenceManager.ReferenceStatusListener listener)` |
    `void` | `removeReferenceStatusListener(ReferenceManager.ReferenceStatusListener listener)` |
    `void` | `onInit(Context context, String appKey)` |
    `void` | `onAttachedToExtension(Fragment fragment, RongExtension extension)` |
    `void` | `onDetachedFromExtension()` |
    `void` | `onReceivedMessage(Message message)` |
    `List<IPluginModule>` | `getPluginModules(ConversationType conversationType)` |
    `List<IEmoticonTab>` | `getEmoticonTabs()` |
    `void` | `onDisconnect()` |
    `void` | `onTextChanged(Context context, ConversationType type, String targetId, int cursorPos, int count, String text)` |
    `void` | `onSendToggleClick(Message message)` |
    `void` | `onDestroy(ConversationType type, String targetId)` |
    `boolean` | `showReferenceView(Context context, UiMessage uiMessage)` | 显示引用消息栏
    `boolean` | `showReferenceView(Context context, UiMessage uiMessage, boolean showKeyBoard)` | 显示引用消息栏
    `void` | `hideReferenceView()` |
    `void` | `onDeleteClick(ConversationType type, String targetId, EditText editText, int cursorPos)` |
    `UiMessage` | `getUiMessage()` |

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

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

- - ### Constructor Detail

    - #### ReferenceManager

          ReferenceManager()

  - ### Method Detail

    - #### getInstance

           static ReferenceManager getInstance()

    - #### setReferenceStatusListener

           void setReferenceStatusListener(ReferenceManager.ReferenceStatusListener listener)

    - #### removeReferenceStatusListener

           void removeReferenceStatusListener(ReferenceManager.ReferenceStatusListener listener)

    - #### onInit

           void onInit(Context context, String appKey)

    - #### onAttachedToExtension

           void onAttachedToExtension(Fragment fragment, RongExtension extension)

    - #### onDetachedFromExtension

           void onDetachedFromExtension()

    - #### onReceivedMessage

           void onReceivedMessage(Message message)

    - #### getPluginModules

           List<IPluginModule> getPluginModules(ConversationType conversationType)

    - #### getEmoticonTabs

           List<IEmoticonTab> getEmoticonTabs()

    - #### onDisconnect

           void onDisconnect()

    - #### onTextChanged

           void onTextChanged(Context context, ConversationType type, String targetId, int cursorPos, int count, String text)

    - #### onSendToggleClick

           void onSendToggleClick(Message message)

    - #### onDestroy

           void onDestroy(ConversationType type, String targetId)

    - #### showReferenceView

           boolean showReferenceView(Context context, UiMessage uiMessage)

      显示引用消息栏

      Parameters:
        `context` - 上下文
        `uiMessage` - 消息实体
      Returns:

        是否显示成功

    - #### showReferenceView

           boolean showReferenceView(Context context, UiMessage uiMessage, boolean showKeyBoard)

      显示引用消息栏

      Parameters:
        `context` - 上下文
        `uiMessage` - 消息实体
      Returns:

        是否显示成功

    - #### hideReferenceView

           void hideReferenceView()

    - #### onDeleteClick

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

    - #### getUiMessage

           UiMessage getUiMessage()