# CarOccupantZoneManager.OccupantZoneInfo

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

# CarOccupantZoneManager.OccupantZoneInfo

`
public
static
final

class
CarOccupantZoneManager.OccupantZoneInfo
`  
`

extends Object


``


implements

Parcelable


`

|---|-----------------------------------------------------|
| java.lang.Object                                       ||
| ↳ | android.car.CarOccupantZoneManager.OccupantZoneInfo |

<br />

*** ** * ** ***

Represents an occupant zone in a car.

Each occupant does not necessarily represent single person but it is for mapping to one set of displays. For example, for display located in center rear seat, both left and right side passengers may use it but it is abstracted as a single occupant zone.

<br />

## Summary

|                                                                                                                                                                 ### 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<`[CarOccupantZoneManager.OccupantZoneInfo](https://developer.android.com/reference/android/car/CarOccupantZoneManager.OccupantZoneInfo)`>` | [CREATOR](https://developer.android.com/reference/android/car/CarOccupantZoneManager.OccupantZoneInfo#CREATOR) <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ` public final int`                                                                                                                                                      | [occupantType](https://developer.android.com/reference/android/car/CarOccupantZoneManager.OccupantZoneInfo#occupantType) Represents type of passenger Value is[CarOccupantZoneManager.OCCUPANT_TYPE_DRIVER](https://developer.android.com/reference/android/car/CarOccupantZoneManager#OCCUPANT_TYPE_DRIVER),[CarOccupantZoneManager.OCCUPANT_TYPE_FRONT_PASSENGER](https://developer.android.com/reference/android/car/CarOccupantZoneManager#OCCUPANT_TYPE_FRONT_PASSENGER), or[CarOccupantZoneManager.OCCUPANT_TYPE_REAR_PASSENGER](https://developer.android.com/reference/android/car/CarOccupantZoneManager#OCCUPANT_TYPE_REAR_PASSENGER) |
| ` public final int`                                                                                                                                                      | [seat](https://developer.android.com/reference/android/car/CarOccupantZoneManager.OccupantZoneInfo#seat) Represents seat assigned for the occupant.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ` public int`                                                                                                                                                            | [zoneId](https://developer.android.com/reference/android/car/CarOccupantZoneManager.OccupantZoneInfo#zoneId) This is an unique id to distinguish each occupant zone.                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |

|                                                                                       ### Public methods                                                                                       ||
|------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` int`     | ` `[describeContents](https://developer.android.com/reference/android/car/CarOccupantZoneManager.OccupantZoneInfo#describeContents())`() `                                         |
| ` boolean` | ` `[equals](https://developer.android.com/reference/android/car/CarOccupantZoneManager.OccupantZoneInfo#equals(java.lang.Object))`(Object other) `                                 |
| ` int`     | ` `[hashCode](https://developer.android.com/reference/android/car/CarOccupantZoneManager.OccupantZoneInfo#hashCode())`() `                                                         |
| ` String`  | ` `[toString](https://developer.android.com/reference/android/car/CarOccupantZoneManager.OccupantZoneInfo#toString())`() `                                                         |
| ` void`    | ` `[writeToParcel](https://developer.android.com/reference/android/car/CarOccupantZoneManager.OccupantZoneInfo#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) ` | ||

## Fields

### CREATOR

```
public static final Creator<CarOccupantZoneManager.OccupantZoneInfo> CREATOR
```

<br />

<br />

### occupantType

```
public final int occupantType
```

Represents type of passenger  
Value is[CarOccupantZoneManager.OCCUPANT_TYPE_DRIVER](https://developer.android.com/reference/android/car/CarOccupantZoneManager#OCCUPANT_TYPE_DRIVER),[CarOccupantZoneManager.OCCUPANT_TYPE_FRONT_PASSENGER](https://developer.android.com/reference/android/car/CarOccupantZoneManager#OCCUPANT_TYPE_FRONT_PASSENGER), or[CarOccupantZoneManager.OCCUPANT_TYPE_REAR_PASSENGER](https://developer.android.com/reference/android/car/CarOccupantZoneManager#OCCUPANT_TYPE_REAR_PASSENGER)

<br />

### seat

```
public final int seat
```

Represents seat assigned for the occupant. In some system, this can have value of[VehicleAreaSeat.SEAT_UNKNOWN](https://developer.android.com/reference/android/car/VehicleAreaSeat#SEAT_UNKNOWN).  
Value is[VehicleAreaSeat.SEAT_UNKNOWN](https://developer.android.com/reference/android/car/VehicleAreaSeat#SEAT_UNKNOWN),[VehicleAreaSeat.SEAT_ROW_1_LEFT](https://developer.android.com/reference/android/car/VehicleAreaSeat#SEAT_ROW_1_LEFT),[VehicleAreaSeat.SEAT_ROW_1_CENTER](https://developer.android.com/reference/android/car/VehicleAreaSeat#SEAT_ROW_1_CENTER),[VehicleAreaSeat.SEAT_ROW_1_RIGHT](https://developer.android.com/reference/android/car/VehicleAreaSeat#SEAT_ROW_1_RIGHT),[VehicleAreaSeat.SEAT_ROW_2_LEFT](https://developer.android.com/reference/android/car/VehicleAreaSeat#SEAT_ROW_2_LEFT),[VehicleAreaSeat.SEAT_ROW_2_CENTER](https://developer.android.com/reference/android/car/VehicleAreaSeat#SEAT_ROW_2_CENTER),[VehicleAreaSeat.SEAT_ROW_2_RIGHT](https://developer.android.com/reference/android/car/VehicleAreaSeat#SEAT_ROW_2_RIGHT),[VehicleAreaSeat.SEAT_ROW_3_LEFT](https://developer.android.com/reference/android/car/VehicleAreaSeat#SEAT_ROW_3_LEFT),[VehicleAreaSeat.SEAT_ROW_3_CENTER](https://developer.android.com/reference/android/car/VehicleAreaSeat#SEAT_ROW_3_CENTER), or[VehicleAreaSeat.SEAT_ROW_3_RIGHT](https://developer.android.com/reference/android/car/VehicleAreaSeat#SEAT_ROW_3_RIGHT)

<br />

### zoneId

```
public int zoneId
```

This is an unique id to distinguish each occupant zone.

This can be helpful to distinguish different zones when[occupantType](https://developer.android.com/reference/android/car/CarOccupantZoneManager.OccupantZoneInfo#occupantType)and[seat](https://developer.android.com/reference/android/car/CarOccupantZoneManager.OccupantZoneInfo#seat)are the same for multiple occupant / passenger zones.

This id will remain the same for the same zone across configuration changes like user switching or display changes

<br />

<br />

## Public methods

### describeContents

```
public int describeContents ()
```

<br />

<br />

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

### equals

```
public boolean equals (Object other)
```

<br />

<br />

|        Parameters        ||
|---------|-----------------|
| `other` | `Object` <br /> |

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

### hashCode

```
public int hashCode ()
```

<br />

<br />

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

### toString

```
public String toString ()
```

<br />

<br />

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

### writeToParcel

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

<br />

<br />

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