setLiveUpdateConfig

fun setLiveUpdateConfig(context: Context, liveUpdateConfig: LiveUpdate, updateOnAppLoad: Boolean = true): PortalBuilder

Set the LiveUpdate config if using Ionic Live Updates with Portals.

Example usage (kotlin):

val liveUpdateConfig = LiveUpdate("appId", "production")
builder = builder.setLiveUpdateConfig(context, liveUpdateConfig)

Example usage (java):

LiveUpdate liveUpdateConfig = new LiveUpdate("appId", "production");
builder = builder.setLiveUpdateConfig(context, liveUpdateConfig);

Return

the instance of the PortalBuilder with the Ionic Live Updates config set.

Parameters

context

the Android Context used with Ionic Live Updates configuration.

liveUpdateConfig

the Ionic Live Updates config object.

updateOnAppLoad

whether to start an Ionic Live Updates sync as the Portal is configured.