create

fun create(context: Context, apiKey: String, deviceId: String? = null, anonymous: Boolean = false): Telemetry

Creates the DefaultTelemetry instance.

In some jurisdictions, enabling collection of TomTom Telemetry data comes with specific legal requirements. Application developers must consult applicable regulations before enabling TomTom telemetry collection.

Parameters

context

Application context.

apiKey

TomTom APIM API key.

deviceId

Optional device ID predefined by the client. If not provided, DCAS backend will create it.

anonymous

Optional anonymous profile flag.

Throws

Thrown when the DefaultTelemetry instance was already created.