addPlugins

fun addPlugins(plugins: List<Class<out Plugin?>>)

Add multiple Capacitor Plugin to be loaded with this Portal.

Example usage (kotlin):

val list: List<Class<out Plugin?>> = listOf(
FooPlugin::class.java,
BarPlugin::class.java,
BazPlugin::class.java
)

portal.addPlugins(list)

Example usage (java):

List<Class<? extends Plugin>> list = Arrays.asList(
FooPlugin.class,
BarPlugin.class,
BazPlugin.class
);

portal.addPlugins(list);

Parameters

plugins

a list of Plugins to be used with the Portal