Android Development Encounters pit-----Melt Cloud 2.8.+ Version Modify plugin list

Source: Internet
Author: User

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.

    1. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.