DefaultTelemetryConfigProvider

class DefaultTelemetryConfigProvider(context: Context, apiKey: String, deviceId: String? = null) : TelemetryConfigProvider

Default implementation of TelemetryConfigProvider.

When passing an instance of DefaultTelemetryConfigProvider to com.tomtom.sdk.telemetry.Telemetry.initialize, the method will throw:

Important: This is a Public Preview API. It may be changed or removed at any time.

Parameters

context

A context instance.

apiKey

TomTom APIM API key.

deviceId

Optional device ID predefined by the client. If not provided, it will be generated automatically. If the provided deviceId is an empty string, com.tomtom.sdk.telemetry.Telemetry.initialize will throw an error.

Constructors

Link copied to clipboard
constructor(context: Context, apiKey: String, deviceId: String? = null)