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

A builder for instantiating CarZone.

Constants

const Int

Refers to all the columns in the vehicle.

const Int

Refers to the center column of the vehicle only.

const Int

Refers to either CAR_ZONE_COLUMN_LEFT or CAR_ZONE_COLUMN_RIGHT, depending on the vehicle configuration.

const Int

Refers to the left-most column of the vehicle only.

const Int

Refers to either CAR_ZONE_COLUMN_LEFT or CAR_ZONE_COLUMN_RIGHT, depending on the vehicle configuration.

const Int

Refers to the right-most column of the vehicle only.

const CarZone!

Refers to the global zone, represented by CAR_ZONE_ROW_ALL, CAR_ZONE_COLUMN_ALL.

const Int

Refers to all the rows in the vehicle.

const Int

Refers to the all rows, except for CAR_ZONE_ROW_FIRST of the vehicle.

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
equals(object: Any?)
Int

Returns one of the values in CarZoneColumn.

Int

Returns one of the values in CarZoneRow.

Int
String

Constants

CAR_ZONE_COLUMN_ALL

Added in 1.3.0
const val CAR_ZONE_COLUMN_ALL = 16: Int

Refers to all the columns in the vehicle.

CAR_ZONE_COLUMN_CENTER

Added in 1.3.0
const val CAR_ZONE_COLUMN_CENTER = 48: Int

Refers to the center column of the vehicle only.

CAR_ZONE_COLUMN_DRIVER

Added in 1.3.0
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

Added in 1.3.0
const val CAR_ZONE_COLUMN_LEFT = 32: Int

Refers to the left-most column of the vehicle only.

CAR_ZONE_COLUMN_PASSENGER

Added in 1.3.0
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

Added in 1.3.0
const val CAR_ZONE_COLUMN_RIGHT = 64: Int

Refers to the right-most column of the vehicle only.

CAR_ZONE_GLOBAL

Added in 1.3.0
const val CAR_ZONE_GLOBALCarZone!

Refers to the global zone, represented by CAR_ZONE_ROW_ALL, CAR_ZONE_COLUMN_ALL.

CAR_ZONE_ROW_ALL

Added in 1.3.0
const val CAR_ZONE_ROW_ALL = 0: Int

Refers to all the rows in the vehicle.

CAR_ZONE_ROW_EXCLUDE_FIRST

Added in 1.3.0
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

Added in 1.3.0
const val CAR_ZONE_ROW_FIRST = 1: Int

Refers to the front row of the vehicle only.

CAR_ZONE_ROW_SECOND

Added in 1.3.0
const val CAR_ZONE_ROW_SECOND = 2: Int

Refers to the second row of the vehicle only.

CAR_ZONE_ROW_THIRD

Added in 1.3.0
const val CAR_ZONE_ROW_THIRD = 3: Int

Refers to the third row of the vehicle only.

Public functions

equals

Added in 1.4.0-rc02
fun equals(object: Any?): Boolean

getColumn

Added in 1.3.0
fun getColumn(): Int

Returns one of the values in CarZoneColumn.

getRow

Added in 1.3.0
fun getRow(): Int

Returns one of the values in CarZoneRow.

hashCode

Added in 1.4.0-rc02
fun hashCode(): Int

toString

Added in 1.4.0-rc02
fun toString(): String