CarZone
@CarProtocol
@RequiresCarApi(value = 5)
@ExperimentalCarApi
class CarZone
Allows specification of a car zone using rows and columns. For example, CarZone.Driver allows modification of Driver's seat controls without knowing whether it is a left side driving car or right side driving car. This class is different from CarOccupantZoneManager in that CarZone is specifically for AndroidX APIs' implementation to control car features such as temperature based on zones while CarOccupantZoneManager class provides APIs to get displays and users information.
getCarZones returns a list of these CarZones. It indicates the CarValue happens in those CarValues of the vehicle.
Summary
Nested types |
|---|
class CarZone.BuilderA builder for instantiating |
Constants |
|
|---|---|
const Int |
CAR_ZONE_COLUMN_ALL = 16Refers to all the columns in the vehicle. |
const Int |
Refers to the center column of the vehicle only. |
const Int |
Refers to either |
const Int |
CAR_ZONE_COLUMN_LEFT = 32Refers to the left-most column of the vehicle only. |
const Int |
Refers to either |
const Int |
Refers to the right-most column of the vehicle only. |
const CarZone! |
Refers to the global zone, represented by |
const Int |
CAR_ZONE_ROW_ALL = 0Refers to all the rows in the vehicle. |
const Int |
Refers to the all rows, except for |
const Int |
Refers to the front row of the vehicle only. |
const Int |
Refers to the second row of the vehicle only. |
const Int |
Refers to the third row of the vehicle only. |
Public functions |
|
|---|---|
Boolean |
|
Int |
Returns one of the values in CarZoneColumn. |
Int |
getRow()Returns one of the values in CarZoneRow. |
Int |
hashCode() |
String |
toString() |
Constants
CAR_ZONE_COLUMN_ALL
const val CAR_ZONE_COLUMN_ALL = 16: Int
Refers to all the columns in the vehicle.
CAR_ZONE_COLUMN_CENTER
const val CAR_ZONE_COLUMN_CENTER = 48: Int
Refers to the center column of the vehicle only.
CAR_ZONE_COLUMN_DRIVER
const val CAR_ZONE_COLUMN_DRIVER = 80: Int
Refers to either CAR_ZONE_COLUMN_LEFT or CAR_ZONE_COLUMN_RIGHT, depending on the vehicle configuration.
CAR_ZONE_COLUMN_LEFT
const val CAR_ZONE_COLUMN_LEFT = 32: Int
Refers to the left-most column of the vehicle only.
CAR_ZONE_COLUMN_PASSENGER
const val CAR_ZONE_COLUMN_PASSENGER = 96: Int
Refers to either CAR_ZONE_COLUMN_LEFT or CAR_ZONE_COLUMN_RIGHT, depending on the vehicle configuration.
CAR_ZONE_COLUMN_RIGHT
const val CAR_ZONE_COLUMN_RIGHT = 64: Int
Refers to the right-most column of the vehicle only.
CAR_ZONE_GLOBAL
const val CAR_ZONE_GLOBAL: CarZone!
Refers to the global zone, represented by CAR_ZONE_ROW_ALL, CAR_ZONE_COLUMN_ALL.
CAR_ZONE_ROW_ALL
const val CAR_ZONE_ROW_ALL = 0: Int
Refers to all the rows in the vehicle.
CAR_ZONE_ROW_EXCLUDE_FIRST
const val CAR_ZONE_ROW_EXCLUDE_FIRST = 4: Int
Refers to the all rows, except for CAR_ZONE_ROW_FIRST of the vehicle.
CAR_ZONE_ROW_FIRST
const val CAR_ZONE_ROW_FIRST = 1: Int
Refers to the front row of the vehicle only.
CAR_ZONE_ROW_SECOND
const val CAR_ZONE_ROW_SECOND = 2: Int
Refers to the second row of the vehicle only.
CAR_ZONE_ROW_THIRD
const val CAR_ZONE_ROW_THIRD = 3: Int
Refers to the third row of the vehicle only.