VehicleUpdateObserver

public protocol VehicleUpdateObserver : Observer

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(_:).

Important

This is a Public Preview API. It may be changed or removed at any time.
  • Called when the active vehicle has been updated.

    Declaration

    Swift

    func didUpdateVehicle(_ vehicle: any Vehicle, updatedPropertyIDs: [PropertyID])

    Parameters

    vehicle

    TomTomSDKCommon/Vehicle that has been updated.

    updatedPropertyIDs

    The list of properties that have been updated.