addPlugin

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

Add a Capacitor Plugin to be loaded with the Portal.

Example usage (kotlin):

portalFragment.addPlugin(MyPlugin::class.java)

Example usage (java):

portalFragment.addPlugin(MyPlugin.class);

Parameters

plugin

a plugin to load with the Portal