sendData

fun sendData(eventName: String, data: Any?): PluginError?

Sends arbitrary data to the plugin.

Parameters

eventName

Name of the event. This is used to listen for the event in plugin SDK.

data

Data you wish to emit. It can assume any Primitive, String, List & Map type.