addPlugin

fun addPlugin(plugin: Class<out Plugin?>)

Add a Capacitor Plugin to be loaded with this Portal.

Example usage (kotlin):

portal.addPlugin(MyPlugin::class.java)

Example usage (java):

portal.addPlugin(MyPlugin.class);

Parameters

plugin

a Plugin to be used with the Portal