Package io.rong.imkit.base

## Class MultiDataHandler

- All Implemented Interfaces:

      public abstract class MultiDataHandler

  业务逻辑处理-包含数据回调

  Since:

    5.10.4

  Author:

    rongcloud

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---

  - ### Field Summary

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

  - ### Constructor Summary

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

  - ### Enum Constant Summary

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

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `stop()` |
    `final <T> void` | `)>addDataChangeListener(MultiDataHandler.DataKey<)>T> dataKey, OnDataChangeListener<T> onDataChangeListener)` | 添加数据变化监听器
    `final <T> void` | `)>replaceDataChangeListener(MultiDataHandler.DataKey<)>T> dataKey, OnDataChangeListener<T> onDataChangeListener)` | 替换数据变化监听器

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

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

- - ### Constructor Detail

    - #### MultiDataHandler

          MultiDataHandler()

  - ### Method Detail

    - #### stop

           void stop()

    - #### addDataChangeListener

           final <T> void )>addDataChangeListener(MultiDataHandler.DataKey<)>T> dataKey, OnDataChangeListener<T> onDataChangeListener)

      添加数据变化监听器

      Parameters:
        `dataKey` - 包含key和对应Class类型的对象
        `onDataChangeListener` - 数据变化监听器

    - #### replaceDataChangeListener

           final <T> void )>replaceDataChangeListener(MultiDataHandler.DataKey<)>T> dataKey, OnDataChangeListener<T> onDataChangeListener)

      替换数据变化监听器

      Parameters:
        `dataKey` - 包含key和对应Class类型的对象
        `onDataChangeListener` - 数据变化监听器