VehicleProviderFactory
public enum VehicleProviderFactory
Responsible for creating instances of TomTomSDKVehicle/VehicleProvider to control, access and notify of the vehicle state.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Creates an instance of
TomTomSDKVehicle/VehicleProvider.Declaration
Swift
public static func create( vehicle: any Vehicle = Car(combustionEngine: CombustionEngine()), observationHandler: Observable = ObservableHandler(dispatchQueue: .main) ) -> VehicleProviderParameters
vehicleThe current vehicle to be provided. If not specified the default value is
TomTomSDKCommon/CarwithTomTomSDKCommon/CombustionEngine.observationHandlerObservable protocol defines the policy for notify status.
Return Value
An instance of
TomTomSDKVehicle/VehicleProvider.
TomTom SDK for iOS (TomTomSDKMapMatchingEngineHybrid 0.38.0-rc01 Docs)
VehicleProviderFactory