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.

    Throws

    TelemetryError.invalidArgument if the device ID contains symbols that are not allowed.

    Declaration

    Swift

    public init(apiKey: String, deviceID: String? = nil) throws

    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.