addPluginInstance

fun addPluginInstance(plugin: Plugin)

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

Example usage (kotlin):

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

Example usage (java):

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

Parameters

plugin

a plugin instance to load with the Portal