DefaultVehicleProvider
class DefaultVehicleProvider(vehicle: Vehicle = Vehicle.Car(combustionEngine = CombustionEngine())) : VehicleProvider
Responsible for control, access and notification of the vehicle state.
Parameters
vehicle
Used for setting the initial state. Default value is an combustion engine non-commercial car.
Important: This is a Public Preview API. It may be changed or removed at any time.
Functions
Link copied to clipboard
Adds an VehicleUpdatedListener which will be notified about any vehicle update.
open override fun addVehicleUpdatedListener(vehicleUpdatedListener: VehicleUpdatedListener, vehicleUpdateOptions: List<VehicleUpdateOption>)
Adds an VehicleUpdatedListener which will be notified when specific vehicle parameters are updated.
Link copied to clipboard
Removes the vehicle update listener.
Link copied to clipboard
Sets the vehicle.
Link copied to clipboard
Updates the vehicle state.