set Plugins
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)
Content copied to clipboard
Example usage (java):
List<? extends Plugin> list = Array.asList(
FooPlugin.class,
BarPlugin.class,
BazPlugin.class
);
builder = builder.setPlugins(list);
Content copied to clipboard
Return
the instance of the PortalBuilder with the plugins set
Parameters
plugins
a list of plugins to be used with the Portal