# CarZone.Builder

# CarZone.Builder

Artifact:[androidx.car.app:app](https://developer.android.com/jetpack/androidx/releases/car-app)  
[View Source](https://cs.android.com/search?q=file:androidx/car/app/hardware/common/CarZone.java+class:androidx.car.app.hardware.common.CarZone.Builder)  
Added in[1.3.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.3.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/car/app/hardware/common/CarZone.Builder "View this page in Java")

<br />

```
class CarZone.Builder
```

<br />

*** ** * ** ***

A builder for instantiating[CarZone](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarZone).

## Summary

|                                                 ### Public constructors                                                  |
|--------------------------------------------------------------------------------------------------------------------------|
| [Builder](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarZone.Builder#Builder())`()` |

|                                                ### Public functions                                                |
|--------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [CarZone](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarZone)                 | [build](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarZone.Builder#build())`()` Constructs the[CarZone](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarZone)defined by this builder.                                                                                         |
| [CarZone.Builder](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarZone.Builder) | [setColumn](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarZone.Builder#setColumn(int))`(column: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Sets the column value for the[CarZone](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarZone). |
| [CarZone.Builder](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarZone.Builder) | [setRow](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarZone.Builder#setRow(int))`(row: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Sets the row value for the[CarZone](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarZone).             |

## Public constructors

### Builder

Added in 1.3.0  

```
Builder()
```  

## Public functions

### build

Added in[1.3.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.3.0)  

```
fun build(): CarZone
```

Constructs the[CarZone](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarZone)defined by this builder.

[CAR_ZONE_ROW_ALL](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarZone#CAR_ZONE_ROW_ALL())will be used by default if the row value is not set using[setRow](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarZone.Builder#setRow(int)).[CAR_ZONE_COLUMN_ALL](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarZone#CAR_ZONE_COLUMN_ALL())will be used by default if the column value is not set[setColumn](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarZone.Builder#setColumn(int)).  

### setColumn

Added in[1.3.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.3.0)  

```
fun setColumn(column: Int): CarZone.Builder
```

Sets the column value for the[CarZone](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarZone).

The column value should be in the CarZoneColumn list.  

### setRow

Added in[1.3.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.3.0)  

```
fun setRow(row: Int): CarZone.Builder
```

Sets the row value for the[CarZone](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarZone).

The row value should be in the CarZoneRow list.