vncore / com.venuenext.vncore.service / EnvironmentService / loadEnvironment

loadEnvironment

fun loadEnvironment(sdkKey: String, secretKey: String): <ERROR CLASS>

Load environment from SDK portico service via async/await.

Parameters

sdkKey - the SDK key.

secretKey - the Secret key.

Return
awaits for async promise to return Login Response.

fun loadEnvironment(sdkKey: String, secretKey: String, success: (result: Environment?) -> Unit, failure: (Exception) -> Unit): Unit

Load environment from SDK portico service via callbacks.

Parameters

sdkKey - the SDK key.

success - the success callback.

failure - the failure callback.