Brief introduction
Melt Cloud in the 2.8.+, the input area is reconstructed, the input area is rongextension, the plug-in is the plugin module of the Rongextension area.
List<IPluginModule> getPluginModules(Conversation.ConversationType conversationType)
Cloud Default has the following several plugin plug-ins
Problem
Now because of the project needs, only need location and picture function, so to modify the existing list, according to cloud Official document, you need to customize a class inheriting defaultextensionmodule, overriding the Getpluginmodules method
Workaround
1. Display of the position
The location function needs to import the SDK of the great map under the Cloud module and configure the relevant settings (AppKey) of the Gold SDK in your app to display it.
The cloud document is written under the Imkit package introduced, I imlib under the introduction of the same effective, anyway will be packaged @[email protected]!
2. File function Removal
Removing the file feature requires overriding the Getpluginmodules method and returning the final plug-in display list to the final plug-in display list.
(1) Removal of files plugin
(2) Set up a new plugin list for cloud integration
Cloud Official Document method, call this method before opening the session interface! I called it in my appplication.
Android Development Encounters pit-----Melt Cloud 2.8.+ Version Modify plugin list