create

fun create(transport: Transport): Telemetry

Creates the DefaultTelemetry instance based on passed Transport implementation.

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

transport

An implementation of Transport interface that processes telemetry data.

Throws

Thrown when the DefaultTelemetry instance was already created.


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

Creates the DefaultTelemetry instance with the default Transport implementation.

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

Android 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.