convert

abstract fun convert(    value: Any?,     areaId: Int,     range: ClosedRange<*>?): ValueType

Converts value, areaId, and range to an IVI property of type ValueType.

Return

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

Parameters

value

The value of a property to be passed to ValueType.

Note: The parameter value is nullable. The conversion can set VehicleProperty.value to null when parameter value is null, to indicate that the property is supported but unavailable.

areaId

The ID of a specific object or area within a VehicleArea, for instance a specific seat within a given SeatArea.

range

An optional ClosedRange that can be used to manipulate value.

Note: The value is not guaranteed to be within range. See also createCoercedRangedProperty.