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.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun addVehicleUpdatedListener(vehicleUpdatedListener: VehicleUpdatedListener)

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
open override fun removeVehicleUpdatedListener(vehicleUpdatedListener: VehicleUpdatedListener)

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
fun updateVehicleState(updatedParameters: List<VehicleParameter>)

Updates the vehicle state.

Properties

Link copied to clipboard
open override val vehicleSnapshot: <Error class: unknown class>

Snapshot of the current vehicle state.