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 a VehicleUpdatedListener which will be notified about any vehicle update.
Link copied to clipboard
Removes the VehicleUpdatedListener.
Link copied to clipboard
Sets the Vehicle.
Link copied to clipboard
Updates the properties of the vehicle. Only properties that were defined by the vehicle previously set via setVehicle can be updated.