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:
IllegalArgumentException if constructor parameters are invalid,
Exception if an error occurs when creating or accessing an internal database.
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.