Package io.rong.imlib

## Class ModuleManager

- All Implemented Interfaces:

      @Deprecated()
      public class ModuleManager

  注意：以后新功能，尽量不用这个类了。

  1.如果是im lib的扩展, 如 remoteControl 或者 moment， 那么使用IMLibExtensionModule

  2.如果直接是im client的内部功能之一，如实时位置共享(现在使用的是ModuleManager)， 应当直接在RongCoreClient 内处理

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `public interface` | `ModuleManager.MessageRouter` |
    `public interface` | `ModuleManager.ConnectivityStateChangedListener` |

  - ### Field Summary

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

  - ### Constructor Summary

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

  - ### Enum Constant Summary

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

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `static void` | `addConnectivityStateChangedListener(ModuleManager.ConnectivityStateChangedListener listener)` |
    `static void` | `addMessageRouter(ModuleManager.MessageRouter listener)` |
    `static void` | `removeMessageRouter(ModuleManager.MessageRouter router)` |
    `static void` | `removeConnectivityStateChangedListener(ModuleManager.ConnectivityStateChangedListener listener)` |
    `static IRongCoreListener.OnReceiveMessageListener` | `getListener()` |

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

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

- - ### Constructor Detail

    - #### ModuleManager

          ModuleManager()

  - ### Method Detail

    - #### addConnectivityStateChangedListener

           static void addConnectivityStateChangedListener(ModuleManager.ConnectivityStateChangedListener listener)

    - #### addMessageRouter

           static void addMessageRouter(ModuleManager.MessageRouter listener)

    - #### removeMessageRouter

           static void removeMessageRouter(ModuleManager.MessageRouter router)

    - #### removeConnectivityStateChangedListener

           static void removeConnectivityStateChangedListener(ModuleManager.ConnectivityStateChangedListener listener)

    - #### getListener

           static IRongCoreListener.OnReceiveMessageListener getListener()