init

fun init(appContext: Context, customerId: String, isSandbox: Boolean, authTokenProvider: AuthTokenProvider)

Initialize Volt SDK connected to Volt environment.

Parameters

customerId

String customerId in Volt system

isSandbox

Boolean whether to use sandbox environment or not

authTokenProvider

io.volt.sdk.network.AuthTokenProvider implementation of AuthTokenProvider interface,


fun init(appContext: Context, customerId: String, apiUrl: String, authTokenProvider: AuthTokenProvider)

Initialize Volt SDK connected to specific API environment.

Parameters

customerId

String customerId in Volt system

apiUrl

String of API that should be used by SDK

authTokenProvider

AuthTokenProvider implementation of AuthTokenProvider interface,