DefaultTelemetryConfigProvider
public class DefaultTelemetryConfigProvider : TelemetryConfigProvider
Default implementation of TelemetryConfigProvider
.
When passing an instance of DefaultTelemetryConfigProvider
to Telemetry.initialize
, the method will throw a TelemetryError
if:
- Initializer parameters are invalid,
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.
-
Create
DefaultTelemetryConfigProvider
object.Declaration
Swift
public init(apiKey: String, deviceID: String? = nil)
Parameters
apiKey
TomTom APIM API key.
deviceID
Optional device ID predefined by the client. If not provided, it is generated automatically. If not nil, it can contain only alphanumeric, ‘_’ (underscore) or ‘-’ (hyphen) characters. Otherwise,
Telemetry.initialize
will throw an error.