DefaultTelemetryConfigProvider

@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
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:

Parameters

context

A context instance.

apiKey

TomTom APIM API key.

deviceId

Optional device ID predefined by the client. If not provided, a unique identifier will be automatically generated. The provided device ID must contain only alphanumeric, _ or - and the length must be in the range 6,128, otherwise com.tomtom.sdk.telemetry.Telemetry.initialize will throw an exception.

Note

The deviceId must be globally unique; reliance on the automatically generated identifier is recommended.

Constructors

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