Other methods
Listening to plugin events
You can receive data from a plugin by implementing the onPluginMessage()
method defined in RtkPluginsEventListener
interface. This method comes in handy when building your own plugin. The RtkPluginsEventListener
interface also offers other callbacks as given below:
class PluginsEventListener extends RtkPluginsEventListener {
void onPluginActivated(RtkPlugin plugin) {}
void onPluginDeactivated(RtkPlugin plugin) {}
void onPluginMessage(RtkPlugin plugin, String eventName, String data) {}
void onPluginFileRequest(RtkPlugin plugin) {}
}
Attach the PluginsEventListener()
to the meeting to receive plugin events as follows:
meeting.addPluginsEventListener(PluginsEventListener())