Telemetry

public enum Telemetry

Main entry point to send Telemetry data.

Important

This is a Public Preview API. It may be changed or removed at any time.
  • The end-user consent for sending telemetry data. TomTom does not store telemetry configuration persistently. The client is responsible for asking the end user any legal permissions to gather telemetry data.

    Declaration

    Swift

    public static var userConsent: Consent { get set }
  • Initializes the Telemetry instance if it’s not initialized yet.

    In some jurisdictions, enabling collection of TomTom Telemetry data comes with specific legal requirements. Application developers must consult applicable regulations before enabling TomTom telemetry collection.

    If already initialized, this function does nothing.

    Throws

    TelemetryError in case of any configuration error. See configProvider type documentation for more details.

    Declaration

    Swift

    public static func initialize(configProvider: TelemetryConfigProvider) throws

    Parameters

    configProvider

    Provider of the Telemetry configuration.