VhalWrapper

class VhalWrapper

VhalWrapper implements basic handling of car properties from Android's Vehicle Hardware Abstraction Layer. Intended to be used in vehicle function service implementations.

Parameters

car

A Car instance.

lifecycleOwner

The LifecycleOwner of this process.

vhalPropertyList

A List of delegates defined in the service instances. VhalPropertyDelegate.vhalPropertyIds set to VhalPropertyDelegate.PROPERTY_ID_NOT_SUPPORTED are automatically skipped and corresponding vehicle function properties are set to unsupported. See VehicleProperties for more details about property states.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
var propertyManager: CarPropertyManager

A CarPropertyManager instance for a specific vehicle property.

Functions

Link copied to clipboard
fun disconnect()

Disconnect from car service. This can be called while disconnected. Once disconnect is called, all CarPropertyManager instances become invalid.