VehicleProvider

interface VehicleProvider

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

Important: This is a Public Preview API. It may be changed or removed at any time.

Properties

Link copied to clipboard
abstract val vehicleSnapshot: Vehicle

Snapshot of the current 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 setVehicle(vehicle: Vehicle)

Sets the Vehicle.

Link copied to clipboard
abstract fun updateVehicle(updatedProperties: List<VehicleProperty>)

Updates the properties of the vehicle. The only properties that can be updated are those defined by the vehicle, which was previously set via setVehicle.