VhalPropertyDelegate

fun <ValueType> VhalPropertyDelegate(    vhalPropertyId: Int,     serviceProperty: KMutableProperty<ValueType?>,     valueConverter: VhalPropertyDelegate.ValueConverter<ValueType>,     sensorRateHz: Float = CarPropertyManager.SENSOR_RATE_ONCHANGE)

Parameters

ValueType

A generic property type. Commonly used types are VehicleProperties subtypes or VehicleZoneProperty.

vhalPropertyId

An ID referring to the VHAL property.

serviceProperty

The property of the property service to be set to the value of the VHAL property.

valueConverter

A ValueConverter implementation that converts the parameters value, areaId and range to a ValueType.

Note: The singleBooleanConverter is an example of a simple implementation of the ValueConverter interface.

sensorRateHz

How fast the property events are delivered in Hz. See CarPropertyManager's SENSOR_RATE_* constants for common values.