set Live Update Config
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)Content copied to clipboard
Example usage (java):
LiveUpdate liveUpdateConfig = new LiveUpdate("appId", "production");
builder = builder.setLiveUpdateConfig(context, liveUpdateConfig);Content copied to clipboard
Return
the instance of the PortalBuilder with the live update config set.
Parameters
context
the Android Context used with live update configuration.
live Update Config
the live update config object.
update On App Load
if a sync should occur as soon as the Portal loads