DefaultVehicleProvider
Responsible for control, access and notification of the vehicle state. If setVehicle has never been successfully executed, vehicleSnapshot will return an empty 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
fun setVehicle(vehicleType: <Error class: unknown class>, vehicleParameters: List<VehicleParameter>)
fun setVehicle(vehicleType: <Error class: unknown class>, modelId: String, vehicleParameters: List<VehicleParameter>)
Set vehicle parameters, compliant with vehicle type.
Link copied to clipboard
Updates the vehicle state.