initialize

fun initialize(context: Context, sdkConfiguration: SdkConfiguration)

Initializes the TomTom Navigation SDK. Given the Context and SdkConfiguration, it initializes the SDK based on the provided configuration.

Parameters

context

The Context. Contains common configuration shared by different modules across the SDK.

sdkConfiguration

The SdkConfiguration. Contains configuration options for the SDK such as the API key.

Throws

If the SDK has already been initialized or if the SdkConfiguration is not supported.