addPluginInstances

fun addPluginInstances(plugins: List<Plugin>)

Add multiple Capacitor Plugin instances to be loaded with this Portal.

Example usage (kotlin):

val list: List<Plugin> = listOf(
MyCapacitorPlugin(),
MySecondCapacitorPlugin(),
MyThirdCapacitorPlugin()
)

portal.addPluginInstances(list)

Example usage (java):

List<Plugin> list = Arrays.asList(
new MyCapacitorPlugin(),
new MySecondCapacitorPlugin(),
new MyThirdCapacitorPlugin()
);

portal.addPluginInstances(list);

Parameters

plugins

a list of Plugin instances to be used with the Portal