addPluginInstance

fun addPluginInstance(plugin: Plugin)

Add a Capacitor Plugin instance to be loaded with this Portal.

Example usage (kotlin):

val myPlugin = MyCapacitorPlugin()
portal.addPluginInstance(myPlugin)

Example usage (java):

val myPlugin = new MyCapacitorPlugin();
portal.addPluginInstance(myPlugin);

Parameters

plugin

a Plugin instance to be used with the Portal