vehicle

abstract var vehicle: Vehicle

Setting a different vehicle notifies registered VehicleUpdatedListeners of the latest vehicle state.

To only update specific properties of the current vehicle, see updateVehicleProperties.

Example snippet that sets a car vehicle with a combustion engine:

vehicleProvider.vehicle = Vehicle.Car(
combustionEngine = CombustionEngine()
)