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

Added in API level 30
public static final Creator<CarOccupantZoneManager.OccupantZoneInfo> CREATOR

zoneId

Added in API level 30
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

Added in API level 30
public int describeContents ()

Returns
int

equals

Added in API level 30
public boolean equals (Object other)

Parameters
other Object

Returns
boolean

hashCode

Added in API level 30
public int hashCode ()

Returns
int

toString

Added in API level 30
public String toString ()

Returns
String

writeToParcel

Added in API level 30
public void writeToParcel (Parcel dest, 
                int flags)

Parameters
dest Parcel

flags int