TomTomSDKVehicle

TomTomSDKVehicle

The Vehicle module facilitates the creation and management of vehicle instances within navigation applications. This module provides comprehensive functionalities for controlling, accessing, and notifying users about the state of vehicles, enhancing the overall navigation experience.

Functionalities
  • VehicleProviderFactory creates instances of VehicleProvider, to manage the vehicle’s state and properties.
  • VehicleUpdateObserver allows observers to receive update notifications to the vehicle’s state. Developers can register to receive updates using the addObserver(_:) method and can unregister using the removeObserver(_:) method.
  • CombustionEngineProperty represents attributes of the combustion engine, enabling updates to the vehicle’s combustion engine state through the updateVehicleProperties(_:) method.
  • ElectricEngineProperty represents attributes of the electric engine, allowing updates to the vehicle’s electric engine state similarly.
  • VehicleProperty defines various properties associated with the vehicle, facilitating updates to the vehicle’s overall state via the updateVehicleProperties(_:) method.
  • DefaultVehicleProvider provides a thread-safe implementation of the VehicleProvider interface, ensuring safe access and updates to vehicle properties while allowing for subscription to property changes.


API Overview

  • An observer that receives TomTomSDKCommon/Vehicle state updates.

    To start receiving vehicle state updates, become an observer using TomTomSDKVehicle/VehicleProvider/addObserver(_:). To stop receiving vehicle state updates, remove the previously added observer using TomTomSDKVehicle/VehicleProvider/removeObserver(_:).

    See more

    Declaration

    Swift

    public protocol VehicleUpdateObserver : Observer
  • Unique identifier of each property supported TomTomSDKCommon/Vehicle implementations.

    See more

    Declaration

    Swift

    public enum PropertyID : Equatable
  • Responsible for control, access and notification of the vehicle state.

    See more

    Declaration

    Swift

    public protocol VehicleProvider : AnyObject
  • Responsible for creating instances of TomTomSDKVehicle/VehicleProvider to control, access and notify of the vehicle state.

    See more

    Declaration

    Swift

    public enum VehicleProviderFactory