on Click
Called when the plugin is clicked. 1. If data from the Extension is needed, call the corresponding Extension methods to obtain it. 2. If a new activity needs to be started after clicking, use startActivityForResult or startActivityForPluginResult.
Note: Do not hold long-lived references to the fragment or extension object, as this will cause memory leaks.
Parameters
current Fragment
The fragment associated with the plugin.
extension
The RongExtension object.
index
The index of the plugin in the plugin panel.