addPluginInstance

fun addPluginInstance(plugin: Plugin): PortalBuilder

Add a plugin instance to be loaded with the Portal.

Example usage (kotlin):

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

Example usage (java):

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

Return

the instance of the PortalBuilder with the plugin instances added

Parameters

plugin

the plugin instance to add to the portal