VehicleProvider

interface VehicleProvider

Responsible for control and access to the vehicle state.

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

Inheritors

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. Only properties that were defined by the vehicle previously set via setVehicle can be updated.