VhalPropertyDelegate

Maps an Android Vehicle Hardware Abstraction Layer property to a ValueType.

Parameters

vhalPropertyId

An ID referring to the VHAL property.

sensorRateHz

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

onPropertyValue

Will be called on car property value updates.

Constructors

Link copied to clipboard
constructor(vhalPropertyId: Int, serviceProperty: KMutableProperty<ValueType>, valueConverter: VhalPropertyDelegate.PropertyValueConverter<ValueType>, sensorRateHz: Float = CarPropertyManager.SENSOR_RATE_ONCHANGE)

Maps an Android Vehicle Hardware Abstraction Layer property to a ValueType.

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

Maps an Android Vehicle Hardware Abstraction Layer property to a ValueType.

Types

Link copied to clipboard
object Companion
Link copied to clipboard
sealed class PropertyValue

Represents the VHAL's information that can be converted to an IVI property.

Link copied to clipboard

A generic interface for converting a property's VHAL information to an IVI property of type ValueType.

Link copied to clipboard

A generic interface for converting a property's VHAL information to an IVI property of type ValueType.

Properties

Link copied to clipboard