Classes

The following classes are available globally.

ConformanceLock

  • A class for restricting protocol conformance to TomTomSDK components.

    Important

    This class should not be instantiated by any other framework except TomTom components. The API and runtime stability aren’t guaranteed otherwise.

    Important

    This is a Public Preview API. It may be changed or removed at any time.

    Declaration

    Swift

    public final class ConformanceLock<T>

TTUnitElectricEfficiency

  • Unit specifying the electric efficiency, e.g., in kilowatt hours per kilometer.

    See more

    Declaration

    Swift

    public final class TTUnitElectricEfficiency : Dimension

TTUnitEnergyDensity

  • Unit specifying the energy density (of fuel). For example, energy density is 34.2 MJ/l for gasoline and 35.8 MJ/l for diesel fuel.

    See more

    Declaration

    Swift

    public final class TTUnitEnergyDensity : Dimension

TTUnitFuelPerTime

  • Unit specifying the fuel usage (of a vehicle) over time.

    See more

    Declaration

    Swift

    public final class TTUnitFuelPerTime : Dimension

TTUnitRatio

  • A quantity describing a ratio, also commonly used for probabilities. (For example, 10%.)

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public final class TTUnitRatio : Dimension

MetadataProvider

  • MetadataProvider stores during app lifecycle additional metadata for HTTP requests to TomTom Network APIs and implements adding this additional metadata to HTTP request’s headers

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public final class MetadataProvider

ObservableHandler

  • A thread-safe implementation of the Observable container.

    Any method can be called from any queue. The notification of observers, completions, and other closures will be executed on a dispatch queue provided in the init method.

    Note

    If you rely on the onLastObserverRemoved closure, call removeObserver(:) explicitly. If the observer is destroyed without an explicit call to removeObserver(:), the onLastObserverRemoved call will be delayed until the next notify event when we detect that the last observer is nil and remove it.
    See more

    Declaration

    Swift

    public final class ObservableHandler : Observable