configureSdk

fun configureSdk(applicationContext: Context, host: String, appKey: String, integrationId: IntegrationId, jwtProvider: JwtProvider, configMap: SdkConfigMap? = null): AxpSdkConfig

Configure the SDK for interacting with AXP.

Return

The configuration applied to the SDK.

Parameters

applicationContext

The Android application context.

host

Hostname of the AXP API endpoint to connect to or an AXP region code.

appKey

Application Key which is required to access the API for your Account.

integrationId

The integration ID for the tenant that is configured on AXP.

jwtProvider

Application-provided instance that fetches a JWT for authentication from AXP.

configMap

Optional map of additional configuration. See SdkConfigKey for the possible entries.

Throws

if the host is blank or if the applicationContext passed is not the application context.