setConfig

fun setConfig(config: CapConfig?)

Set a Capacitor CapConfig to be used to configure the instance of Capacitor used in the Portal.

Example usage (kotlin):

val config = CapConfig.Builder(context).setLoggingEnabled(true).create()
portalFragment.setConfig(config)

Example usage (java):

CapConfig config = new CapConfig.Builder(getContext()).setLoggingEnabled(true).create();
portalFragment.setConfig(config);

Parameters

config

the Capacitor config to use