Classes
The following classes are available globally.
-
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>
-
Unit specifying the electric efficiency, e.g., in kilowatt hours per kilometer.
See moreDeclaration
Swift
public final class TTUnitElectricEfficiency : Dimension
-
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 moreDeclaration
Swift
public final class TTUnitEnergyDensity : Dimension
-
Unit specifying the fuel usage (of a vehicle) over time.
See moreDeclaration
Swift
public final class TTUnitFuelPerTime : Dimension
-
A quantity describing a ratio, also commonly used for probabilities. (For example, 10%.)
See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public final class TTUnitRatio : Dimension
-
MetadataProviderstores during app lifecycle additional metadata for HTTP requests to TomTom Network APIs and implements adding this additional metadata to HTTP request’s headersSee moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public final class MetadataProvider
-
A thread-safe implementation of the
Observablecontainer.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.
See moreNote
If you rely on the onLastObserverRemoved closure, callremoveObserver(:)explicitly. If the observer is destroyed without an explicit call toremoveObserver(:), theonLastObserverRemovedcall will be delayed until the next notify event when we detect that the last observer isniland remove it.Declaration
Swift
public final class ObservableHandler : Observable
Classes Reference