VehicleProvider

interface VehicleProvider

Responsible for the control, access, and listening to changes in the vehicle state.

Properties

Link copied to clipboard
abstract var vehicle: Vehicle

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

Functions

Link copied to clipboard
abstract fun addVehicleUpdatedListener(vehicleUpdatedListener: VehicleUpdatedListener)

Adds a VehicleUpdatedListener which will be notified about any vehicle update.

Link copied to clipboard
abstract fun removeVehicleUpdatedListener(vehicleUpdatedListener: VehicleUpdatedListener)
Link copied to clipboard
abstract fun updateVehicleProperties(vehicleProperties: List<VehicleProperty>)

Updates the properties of the vehicle. The only properties that can be updated are those defined by the currently set vehicle.