Google is committed to advancing racial equity for Black communities. See how.

CarOccupantZoneManager.OccupantZoneInfo

public static final class CarOccupantZoneManager.OccupantZoneInfo
extends Object implements Parcelable

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


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.

Summary

Inherited constants

Fields

public static final Creator<CarOccupantZoneManager.OccupantZoneInfo> CREATOR

public final int occupantType

Represents type of passenger
Value is CarOccupantZoneManager.OCCUPANT_TYPE_DRIVER, CarOccupantZoneManager.OCCUPANT_TYPE_FRONT_PASSENGER, or CarOccupantZoneManager.OCCUPANT_TYPE_REAR_PASSENGER

public final int seat

Represents seat assigned for the occupant.

public int zoneId

This is an unique id to distinguish each occupant zone.

Public methods

int describeContents()
boolean equals(Object other)
int hashCode()
String toString()
void writeToParcel(Parcel dest, int flags)

Inherited methods

Fields

CREATOR

public static final Creator<CarOccupantZoneManager.OccupantZoneInfo> CREATOR

zoneId

public int zoneId

This is an unique id to distinguish each occupant zone.

This can be helpful to distinguish different zones when occupantType and 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

Public methods

describeContents

public int describeContents ()

Returns
int

equals

public boolean equals (Object other)

Parameters
other Object

Returns
boolean

hashCode

public int hashCode ()

Returns
int

toString

public String toString ()

Returns
String

writeToParcel

public void writeToParcel (Parcel dest, 
                int flags)

Parameters
dest Parcel

flags int