init

fun AnylineTireTreadSdk.init(licenseKey: String, context: Context)

Initializes the AnylineTireTreadSdk with a license key, and an Android context

Parameters

licenseKey

the license key provided by a sales representative

context

the Android context

Throws

when provided licenseKey is not allowed

when no connection could be established

when the SDK initialization failed for any unexpected reason


fun AnylineTireTreadSdk.init(licenseKey: String, context: Context, customTag: String? = null, wrapperInfo: WrapperInfo? = null)

Initializes the AnylineTireTreadSdk

Parameters

licenseKey

the license key provided by a sales representative

context

the Android context

customTag

an optional value to identify different devices (max. 50 characters)

wrapperInfo

an optional value to identify a wrapper used to invoke the SDK

Throws

when provided licenseKey is not allowed to be used

when no connection with the TTR Servers could be established

when invalid parameters were provided

when the SDK initialization failed for any unexpected reason

Initializes the AnylineTireTreadSdk with a license key.

Parameters

licenseKey

the license key provided by a sales representative

Throws

when provided licenseKey is not allowed to be used

when no connection with the TTR Servers could be established

when the SDK initialization failed for any unexpected reason


fun AnylineTireTreadSdk.init(licenseKey: String, customTag: String? = null, wrapperInfo: WrapperInfo? = null)

Initializes the AnylineTireTreadSdk

Parameters

licenseKey

the license key provided by a sales representative

customTag

a custom tag to identify different devices (max. 50 characters)

wrapperInfo

wrapper metadata, in case one is being used

Throws

when provided licenseKey is not allowed

when no connection could be established

when invalid parameters were provided

when the SDK initialization failed for any unexpected reason