setLiveUpdateConfig

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

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

Example usage (kotlin):

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

Example usage (java):

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

Return

the instance of the PortalBuilder with the Live Update config set

Parameters

context

the Android Context used with Live Update configuration

liveUpdateConfig

the Live Update config object

updateOnAppLoad

if a Live Update sync should occur as soon as the Portal loads