# 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)

*** ** * ** ***


```
public final class CarZone.Builder
```

<br />

*** ** * ** ***

A builder for instantiating `https://developer.android.com/reference/androidx/car/app/hardware/common/CarZone`.

## Summary

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

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/car/app/hardware/common/CarZone` | `https://developer.android.com/reference/androidx/car/app/hardware/common/CarZone.Builder#build()()` Constructs the `https://developer.android.com/reference/androidx/car/app/hardware/common/CarZone` defined by this builder. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/car/app/hardware/common/CarZone.Builder` | `https://developer.android.com/reference/androidx/car/app/hardware/common/CarZone.Builder#setColumn(int)(int column)` Sets the column value for the `https://developer.android.com/reference/androidx/car/app/hardware/common/CarZone`. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/car/app/hardware/common/CarZone.Builder` | `https://developer.android.com/reference/androidx/car/app/hardware/common/CarZone.Builder#setRow(int)(int row)` Sets the row value for the `https://developer.android.com/reference/androidx/car/app/hardware/common/CarZone`. |

## Public constructors

### Builder

Added in 1.3.0

```
public Builder()
```

## Public methods

### build

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

```
public @NonNull CarZone build()
```

Constructs the `https://developer.android.com/reference/androidx/car/app/hardware/common/CarZone` defined by this builder.

`https://developer.android.com/reference/androidx/car/app/hardware/common/CarZone#CAR_ZONE_ROW_ALL()` will be used by default if the row value is not set using `https://developer.android.com/reference/androidx/car/app/hardware/common/CarZone.Builder#setRow(int)`. `https://developer.android.com/reference/androidx/car/app/hardware/common/CarZone#CAR_ZONE_COLUMN_ALL()` will be used by default if the column value is not set `https://developer.android.com/reference/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)

```
public @NonNull CarZone.Builder setColumn(int column)
```

Sets the column value for the `https://developer.android.com/reference/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)

```
public @NonNull CarZone.Builder setRow(int row)
```

Sets the row value for the `https://developer.android.com/reference/androidx/car/app/hardware/common/CarZone`.

The row value should be in the CarZoneRow list.