setPlugins

fun setPlugins(plugins: MutableList<Class<out Plugin?>>): PortalBuilder

Set a list of Capacitor Plugin to be loaded with the Portal.

Example usage (kotlin):

val list: MutableList<Class<out Plugin?}>> = mutableListOf(
FooPlugin::class.java,
BarPlugin::class.java,
BazPlugin::class.java
)

builder = builder.setPlugins(list)

Example usage (java):

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

builder = builder.setPlugins(list);

Return

the instance of the PortalBuilder with the plugins set

Parameters

plugins

a list of plugins to be used with the Portal