# CarPropertyConfig

Summary:[Constants](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#constants)\|[Inherited Constants](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#inhconstants)\|[Fields](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#lfields)\|[Methods](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#inhmethods)  

# CarPropertyConfig

`
public

final

class
CarPropertyConfig
`  
`

extends Object


``


implements

Parcelable


`

|---|---------------------------------------------|
| java.lang.Object                               ||
| ↳ | android.car.hardware.CarPropertyConfig\<T\> |

<br />

*** ** * ** ***

Represents general information about car property such as data type and min/max ranges for car areas (if applicable). This class supposed to be immutable, parcelable and could be passed over.

## Summary

|                                                                                                          ### Constants                                                                                                           ||
|-------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [VEHICLE_PROPERTY_ACCESS_NONE](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#VEHICLE_PROPERTY_ACCESS_NONE) Property Access Unknown                                                       |
| `int` | [VEHICLE_PROPERTY_ACCESS_READ](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#VEHICLE_PROPERTY_ACCESS_READ) The property is readable                                                      |
| `int` | [VEHICLE_PROPERTY_ACCESS_READ_WRITE](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#VEHICLE_PROPERTY_ACCESS_READ_WRITE) The property is readable and writable                             |
| `int` | [VEHICLE_PROPERTY_ACCESS_WRITE](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#VEHICLE_PROPERTY_ACCESS_WRITE) The property is writable                                                    |
| `int` | [VEHICLE_PROPERTY_CHANGE_MODE_CONTINUOUS](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#VEHICLE_PROPERTY_CHANGE_MODE_CONTINUOUS) Properties of this type change continuously.            |
| `int` | [VEHICLE_PROPERTY_CHANGE_MODE_ONCHANGE](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#VEHICLE_PROPERTY_CHANGE_MODE_ONCHANGE) Properties of this type must report when there is a change. |
| `int` | [VEHICLE_PROPERTY_CHANGE_MODE_STATIC](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#VEHICLE_PROPERTY_CHANGE_MODE_STATIC) Properties of this type must never be changed.                  |

|                                                                                                                                                                 ### Inherited constants                                                                                                                                                                 |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From interface`android.os.Parcelable` |-------|----------------------------------------| | `int` | `CONTENTS_FILE_DESCRIPTOR` <br />      | | `int` | `PARCELABLE_ELIDE_DUPLICATES` <br />   | | `int` | `PARCELABLE_STABILITY_LOCAL` <br />    | | `int` | `PARCELABLE_STABILITY_VINTF` <br />    | | `int` | `PARCELABLE_WRITE_RETURN_VALUE` <br /> | |

|                                                                                                                     ### Fields                                                                                                                     ||
|------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|
| ` public static final Creator<`[CarPropertyConfig](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig)`<T>>` | [CREATOR](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#CREATOR) <br /> |

|                                                                                                                                                                                                                                                                ### Public methods                                                                                                                                                                                                                                                                 ||
|------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` int`                                                                                                           | ` `[describeContents](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#describeContents())`() `                                                                                                                                                                                                                                                                                                   |
| ` int`                                                                                                           | ` `[getAccess](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#getAccess())`() ` Returns the access type of the car property.                                                                                                                                                                                                                                                                    |
| ` `[AreaIdConfig](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig)`<T>`       | ` `[getAreaIdConfig](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#getAreaIdConfig(int))`(int areaId) ` Returns the[AreaIdConfig](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig)for the specified`areaId`.                                                                                                                                                |
| ` List<`[AreaIdConfig](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig)`<T>>` | ` `[getAreaIdConfigs](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#getAreaIdConfigs())`() ` Returns a list of[AreaIdConfig](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig)for this property.                                                                                                                                                             |
| ` int[]`                                                                                                         | ` `[getAreaIds](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#getAreaIds())`() ` Returns a list of area IDs supported for the vehicle property.                                                                                                                                                                                                                                                |
| ` int`                                                                                                           | ` `[getAreaType](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#getAreaType())`() ` Returns the area type of the car property.                                                                                                                                                                                                                                                                  |
| ` int`                                                                                                           | ` `[getChangeMode](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#getChangeMode())`() ` Returns the change mode of the car property.                                                                                                                                                                                                                                                            |
| ` List<Integer>`                                                                                                 | ` `[getConfigArray](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#getConfigArray())`() ` Returns the optional additional configuration parameters.                                                                                                                                                                                                                                             |
| ` float`                                                                                                         | ` `[getMaxSampleRate](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#getMaxSampleRate())`() ` Returns the max sample rate in Hz.                                                                                                                                                                                                                                                                |
| ` T`                                                                                                             | ` `[getMaxValue](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#getMaxValue(int))`(int areaId) ` *This method is deprecated. - use[getAreaIdConfigs()](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#getAreaIdConfigs())or[getAreaIdConfig(int)](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#getAreaIdConfig(int))instead.* |
| ` T`                                                                                                             | ` `[getMaxValue](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#getMaxValue())`() ` *This method is deprecated. - use[getAreaIdConfigs()](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#getAreaIdConfigs())or[getAreaIdConfig(int)](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#getAreaIdConfig(int))instead.*              |
| ` float`                                                                                                         | ` `[getMinSampleRate](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#getMinSampleRate())`() ` Returns the min sample rate in Hz.                                                                                                                                                                                                                                                                |
| ` T`                                                                                                             | ` `[getMinValue](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#getMinValue())`() ` *This method is deprecated. - use[getAreaIdConfigs()](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#getAreaIdConfigs())or[getAreaIdConfig(int)](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#getAreaIdConfig(int))instead.*              |
| ` T`                                                                                                             | ` `[getMinValue](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#getMinValue(int))`(int areaId) ` *This method is deprecated. - use[getAreaIdConfigs()](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#getAreaIdConfigs())or[getAreaIdConfig(int)](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#getAreaIdConfig(int))instead.* |
| ` int`                                                                                                           | ` `[getPropertyId](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#getPropertyId())`() ` Returns the property identifier.                                                                                                                                                                                                                                                                        |
| ` Class<T>`                                                                                                      | ` `[getPropertyType](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#getPropertyType())`() ` Returns the value type of the vehicle property.                                                                                                                                                                                                                                                     |
| ` boolean`                                                                                                       | ` `[isGlobalProperty](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#isGlobalProperty())`() ` Returns whether this property is area type[VehicleAreaType.VEHICLE_AREA_TYPE_GLOBAL](https://developer.android.com/reference/android/car/VehicleAreaType#VEHICLE_AREA_TYPE_GLOBAL).                                                                                                               |
| ` void`                                                                                                          | ` `[writeToParcel](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#writeToParcel(android.os.Parcel,%20int))`(Parcel dest, int flags) `                                                                                                                                                                                                                                                           |

| ### Inherited methods |
|-----------------------|---|
| From class` java.lang.Object ` |-------------------|-------------------------------| | ` Object`         | ` clone() `                   | | ` boolean`        | ` equals(Object arg0) `       | | ` void`           | ` finalize() `                | | ` final Class<?>` | ` getClass() `                | | ` int`            | ` hashCode() `                | | ` final void`     | ` notify() `                  | | ` final void`     | ` notifyAll() `               | | ` String`         | ` toString() `                | | ` final void`     | ` wait(long arg0, int arg1) ` | | ` final void`     | ` wait(long arg0) `           | | ` final void`     | ` wait() `                    | ||
| From interface` android.os.Parcelable ` |------------------|------------------------------------------| | ` abstract int`  | ` describeContents() `                   | | ` default int`   | ` getStability() `                       | | ` abstract void` | ` writeToParcel(Parcel arg0, int arg1) ` | ||

## Constants

### VEHICLE_PROPERTY_ACCESS_NONE

```
public static final int VEHICLE_PROPERTY_ACCESS_NONE
```

Property Access Unknown

<br />

Constant Value: 0 (0x00000000)  

### VEHICLE_PROPERTY_ACCESS_READ

```
public static final int VEHICLE_PROPERTY_ACCESS_READ
```

The property is readable

<br />

Constant Value: 1 (0x00000001)  

### VEHICLE_PROPERTY_ACCESS_READ_WRITE

```
public static final int VEHICLE_PROPERTY_ACCESS_READ_WRITE
```

The property is readable and writable

<br />

Constant Value: 3 (0x00000003)  

### VEHICLE_PROPERTY_ACCESS_WRITE

```
public static final int VEHICLE_PROPERTY_ACCESS_WRITE
```

The property is writable

<br />

Constant Value: 2 (0x00000002)  

### VEHICLE_PROPERTY_CHANGE_MODE_CONTINUOUS

```
public static final int VEHICLE_PROPERTY_CHANGE_MODE_CONTINUOUS
```

Properties of this type change continuously.

<br />

Constant Value: 2 (0x00000002)  

### VEHICLE_PROPERTY_CHANGE_MODE_ONCHANGE

```
public static final int VEHICLE_PROPERTY_CHANGE_MODE_ONCHANGE
```

Properties of this type must report when there is a change.

<br />

Constant Value: 1 (0x00000001)  

### VEHICLE_PROPERTY_CHANGE_MODE_STATIC

```
public static final int VEHICLE_PROPERTY_CHANGE_MODE_STATIC
```

Properties of this type must never be changed.

<br />

Constant Value: 0 (0x00000000)

## Fields

### CREATOR

```
public static final Creator<CarPropertyConfig<T>> CREATOR
```

<br />

<br />

## Public methods

### describeContents

```
public int describeContents ()
```

<br />

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### getAccess

```
public int getAccess ()
```

Returns the access type of the car property.

The access type could be one of the following:

- [CarPropertyConfig.VEHICLE_PROPERTY_ACCESS_NONE](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#VEHICLE_PROPERTY_ACCESS_NONE)
- [CarPropertyConfig.VEHICLE_PROPERTY_ACCESS_READ](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#VEHICLE_PROPERTY_ACCESS_READ)
- [CarPropertyConfig.VEHICLE_PROPERTY_ACCESS_WRITE](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#VEHICLE_PROPERTY_ACCESS_WRITE)
- [CarPropertyConfig.VEHICLE_PROPERTY_ACCESS_READ_WRITE](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#VEHICLE_PROPERTY_ACCESS_READ_WRITE)

<br />

<br />

|                                                                                                                                                                                                                                                                                                                           Returns                                                                                                                                                                                                                                                                                                                           ||
|-------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | the access type of the car property. Value is[VEHICLE_PROPERTY_ACCESS_NONE](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#VEHICLE_PROPERTY_ACCESS_NONE),[VEHICLE_PROPERTY_ACCESS_READ](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#VEHICLE_PROPERTY_ACCESS_READ),[VEHICLE_PROPERTY_ACCESS_WRITE](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#VEHICLE_PROPERTY_ACCESS_WRITE), or[VEHICLE_PROPERTY_ACCESS_READ_WRITE](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#VEHICLE_PROPERTY_ACCESS_READ_WRITE) <br /> |

### getAreaIdConfig

```
public AreaIdConfig<T> getAreaIdConfig (int areaId)
```

Returns the[AreaIdConfig](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig)for the specified`areaId`.

<br />

|       Parameters       ||
|----------|--------------|
| `areaId` | `int` <br /> |

|                                                                                                                    Returns                                                                                                                    ||
|---------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------|
| [AreaIdConfig](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig)`<T>` | [AreaIdConfig](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig)instance for passed`areaId` <br /> |

|                               Throws                                ||
|----------------------------|-----------------------------------------|
| `IllegalArgumentException` | if`areaId`is not supported for property |

### getAreaIdConfigs

```
public List<AreaIdConfig<T>> getAreaIdConfigs ()
```

Returns a list of[AreaIdConfig](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig)for this property.

<br />

|                                                                                                                            Returns                                                                                                                            ||
|-----------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------|
| `List<`[AreaIdConfig](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig)`<T>>` | list of[AreaIdConfig](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig)instances for this property. <br /> |

### getAreaIds

```
public int[] getAreaIds ()
```

Returns a list of area IDs supported for the vehicle property.

An area represents a unique element of a[VehicleAreaType](https://developer.android.com/reference/android/car/VehicleAreaType). For instance, if the[VehicleAreaType](https://developer.android.com/reference/android/car/VehicleAreaType)is[VehicleAreaType.VEHICLE_AREA_TYPE_SEAT](https://developer.android.com/reference/android/car/VehicleAreaType#VEHICLE_AREA_TYPE_SEAT), then an example area is[VehicleAreaSeat.SEAT_ROW_1_LEFT](https://developer.android.com/reference/android/car/VehicleAreaSeat#SEAT_ROW_1_LEFT).

An area ID is a combination of one or more areas, and is created by bitwise "OR"ing the areas together. Areas from different[VehicleAreaType](https://developer.android.com/reference/android/car/VehicleAreaType)values will not be mixed in a single area ID. For example, a[VehicleAreaWheel](https://developer.android.com/reference/android/car/VehicleAreaWheel)area cannot be combined with a[VehicleAreaSeat](https://developer.android.com/reference/android/car/VehicleAreaSeat)area in an area ID.

For properties that return[VehicleAreaType.VEHICLE_AREA_TYPE_GLOBAL](https://developer.android.com/reference/android/car/VehicleAreaType#VEHICLE_AREA_TYPE_GLOBAL)for[getAreaType()](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#getAreaType()), they only support a single area ID of`0`.

Rules for mapping a non[VehicleAreaType.VEHICLE_AREA_TYPE_GLOBAL](https://developer.android.com/reference/android/car/VehicleAreaType#VEHICLE_AREA_TYPE_GLOBAL)property to area IDs:

- A property is mapped to a set of area IDs that are impacted when the property value changes.
- An area cannot be part of multiple area IDs, it will only be part of a single area ID.
- When the property value changes in one of the areas in an area ID, then it will automatically change in all other areas in the area ID.
- The property value will be independently controllable in any two different area IDs.

<br />

<br />

|                     Returns                      ||
|---------|-----------------------------------------|
| `int[]` | the array of supported area IDs. <br /> |

### getAreaType

```
public int getAreaType ()
```

Returns the area type of the car property.

The area type could be one of the following:

- [VehicleAreaType.VEHICLE_AREA_TYPE_GLOBAL](https://developer.android.com/reference/android/car/VehicleAreaType#VEHICLE_AREA_TYPE_GLOBAL)
- [VehicleAreaType.VEHICLE_AREA_TYPE_WINDOW](https://developer.android.com/reference/android/car/VehicleAreaType#VEHICLE_AREA_TYPE_WINDOW)
- [VehicleAreaType.VEHICLE_AREA_TYPE_SEAT](https://developer.android.com/reference/android/car/VehicleAreaType#VEHICLE_AREA_TYPE_SEAT)
- [VehicleAreaType.VEHICLE_AREA_TYPE_DOOR](https://developer.android.com/reference/android/car/VehicleAreaType#VEHICLE_AREA_TYPE_DOOR)
- [VehicleAreaType.VEHICLE_AREA_TYPE_MIRROR](https://developer.android.com/reference/android/car/VehicleAreaType#VEHICLE_AREA_TYPE_MIRROR)
- [VehicleAreaType.VEHICLE_AREA_TYPE_WHEEL](https://developer.android.com/reference/android/car/VehicleAreaType#VEHICLE_AREA_TYPE_WHEEL)
- [VehicleAreaType.VEHICLE_AREA_TYPE_VENDOR](https://developer.android.com/reference/android/car/VehicleAreaType#VEHICLE_AREA_TYPE_VENDOR)

<br />

<br />

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Returns                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ||
|-------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | the area type of the car property. Value is[VehicleAreaType.VEHICLE_AREA_TYPE_GLOBAL](https://developer.android.com/reference/android/car/VehicleAreaType#VEHICLE_AREA_TYPE_GLOBAL),[VehicleAreaType.VEHICLE_AREA_TYPE_WINDOW](https://developer.android.com/reference/android/car/VehicleAreaType#VEHICLE_AREA_TYPE_WINDOW),[VehicleAreaType.VEHICLE_AREA_TYPE_SEAT](https://developer.android.com/reference/android/car/VehicleAreaType#VEHICLE_AREA_TYPE_SEAT),[VehicleAreaType.VEHICLE_AREA_TYPE_DOOR](https://developer.android.com/reference/android/car/VehicleAreaType#VEHICLE_AREA_TYPE_DOOR),[VehicleAreaType.VEHICLE_AREA_TYPE_MIRROR](https://developer.android.com/reference/android/car/VehicleAreaType#VEHICLE_AREA_TYPE_MIRROR),[VehicleAreaType.VEHICLE_AREA_TYPE_WHEEL](https://developer.android.com/reference/android/car/VehicleAreaType#VEHICLE_AREA_TYPE_WHEEL), or[VehicleAreaType.VEHICLE_AREA_TYPE_VENDOR](https://developer.android.com/reference/android/car/VehicleAreaType#VEHICLE_AREA_TYPE_VENDOR) <br /> |

### getChangeMode

```
public int getChangeMode ()
```

Returns the change mode of the car property.

The change mode could be one of the following:

- [CarPropertyConfig.VEHICLE_PROPERTY_CHANGE_MODE_STATIC](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#VEHICLE_PROPERTY_CHANGE_MODE_STATIC)
- [CarPropertyConfig.VEHICLE_PROPERTY_CHANGE_MODE_ONCHANGE](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#VEHICLE_PROPERTY_CHANGE_MODE_ONCHANGE)
- [CarPropertyConfig.VEHICLE_PROPERTY_CHANGE_MODE_CONTINUOUS](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#VEHICLE_PROPERTY_CHANGE_MODE_CONTINUOUS)

<br />

<br />

|                                                                                                                                                                                                                                                                      Returns                                                                                                                                                                                                                                                                      ||
|-------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | the change mode of properties. Value is[VEHICLE_PROPERTY_CHANGE_MODE_STATIC](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#VEHICLE_PROPERTY_CHANGE_MODE_STATIC),[VEHICLE_PROPERTY_CHANGE_MODE_ONCHANGE](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#VEHICLE_PROPERTY_CHANGE_MODE_ONCHANGE), or[VEHICLE_PROPERTY_CHANGE_MODE_CONTINUOUS](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#VEHICLE_PROPERTY_CHANGE_MODE_CONTINUOUS) <br /> |

### getConfigArray

```
public List<Integer> getConfigArray ()
```

Returns the optional additional configuration parameters.

<br />

|                                                             Returns                                                             ||
|-----------------|----------------------------------------------------------------------------------------------------------------|
| `List<Integer>` | Additional configuration parameters. For different properties, configArrays have different information. <br /> |

### getMaxSampleRate

```
public float getMaxSampleRate ()
```

Returns the max sample rate in Hz.

<br />

|                                                                                                                                Returns                                                                                                                                ||
|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `float` | Max sample rate in Hz. Must be defined for[VEHICLE_PROPERTY_CHANGE_MODE_CONTINUOUS](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#VEHICLE_PROPERTY_CHANGE_MODE_CONTINUOUS)return 0 if change mode is not continuous. <br /> |

### getMaxValue

```
public T getMaxValue (int areaId)
```

<br />

**This method is deprecated.**   
- use[getAreaIdConfigs()](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#getAreaIdConfigs())or[getAreaIdConfig(int)](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#getAreaIdConfig(int))instead.

<br />

<br />

|             Parameters              ||
|----------|---------------------------|
| `areaId` | `int`: the area ID <br /> |

|                                     Returns                                     ||
|-----|----------------------------------------------------------------------------|
| `T` | max value in given areaId. Null if not have max value in given area <br /> |

### getMaxValue

```
public T getMaxValue ()
```

<br />

**This method is deprecated.**   
- use[getAreaIdConfigs()](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#getAreaIdConfigs())or[getAreaIdConfig(int)](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#getAreaIdConfig(int))instead.

<br />

<br />

|                            Returns                             ||
|-----|-----------------------------------------------------------|
| `T` | Max value in areaId 0. Null if not have max value. <br /> |

### getMinSampleRate

```
public float getMinSampleRate ()
```

Returns the min sample rate in Hz.

<br />

|                                                                                                                                Returns                                                                                                                                ||
|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `float` | Min sample rate in Hz. Must be defined for[VEHICLE_PROPERTY_CHANGE_MODE_CONTINUOUS](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#VEHICLE_PROPERTY_CHANGE_MODE_CONTINUOUS)return 0 if change mode is not continuous. <br /> |

### getMinValue

```
public T getMinValue ()
```

<br />

**This method is deprecated.**   
- use[getAreaIdConfigs()](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#getAreaIdConfigs())or[getAreaIdConfig(int)](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#getAreaIdConfig(int))instead.

<br />

<br />

|                            Returns                             ||
|-----|-----------------------------------------------------------|
| `T` | Min value in areaId 0. Null if not have min value. <br /> |

### getMinValue

```
public T getMinValue (int areaId)
```

<br />

**This method is deprecated.**   
- use[getAreaIdConfigs()](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#getAreaIdConfigs())or[getAreaIdConfig(int)](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#getAreaIdConfig(int))instead.

<br />

<br />

|             Parameters              ||
|----------|---------------------------|
| `areaId` | `int`: the area ID <br /> |

|                                     Returns                                     ||
|-----|----------------------------------------------------------------------------|
| `T` | min value in given areaId. Null if not have min value in given area <br /> |

### getPropertyId

```
public int getPropertyId ()
```

Returns the property identifier.

<br />

|                                                                         Returns                                                                         ||
|-------|--------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | Property identifier, must be one of enums in[VehiclePropertyIds](https://developer.android.com/reference/android/car/VehiclePropertyIds). <br /> |

### getPropertyType

```
public Class<T> getPropertyType ()
```

Returns the value type of the vehicle property.

The value type could be one of the following:

- Boolean
- Float
- Float\[\]
- Integer
- Integer\[\]
- Long
- Long\[\]
- String
- byte\[\]
- Object\[\]

<br />

<br />

|                          Returns                           ||
|------------|------------------------------------------------|
| `Class<T>` | the value type of the vehicle property. <br /> |

### isGlobalProperty

```
public boolean isGlobalProperty ()
```

Returns whether this property is area type[VehicleAreaType.VEHICLE_AREA_TYPE_GLOBAL](https://developer.android.com/reference/android/car/VehicleAreaType#VEHICLE_AREA_TYPE_GLOBAL).

<br />

|                                                                                            Returns                                                                                            ||
|-----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `boolean` | true if this property is area type[VehicleAreaType.VEHICLE_AREA_TYPE_GLOBAL](https://developer.android.com/reference/android/car/VehicleAreaType#VEHICLE_AREA_TYPE_GLOBAL). <br /> |

### writeToParcel

```
public void writeToParcel (Parcel dest, 
                int flags)
```

<br />

<br />

|        Parameters        ||
|---------|-----------------|
| `dest`  | `Parcel` <br /> |
| `flags` | `int` <br />    |