Skip to content
Vehicle properties
Seats

SEAT_OCCUPANCY

What it is

Seat Occupancy

Indicates whether a particular seat is occupied or not, to the best of the car's ability to determine. Valid values are from the VehicleSeatOccupancyState enum.

How the ID is built

A property ID is a 32-bit value packing four fields. Reading 0x15400bb0 apart:

FieldMaskValueMeans
Group0xf00000000x10000000SYSTEM
Area0x0f0000000x05000000SEAT
Type0x00ff00000x00400000INT32
Ordinal0x0000ffff0x00000bb00xbb0

Reading it from an app

CarPropertyManager mgr = (CarPropertyManager)
        car.getCarManager(Car.PROPERTY_SERVICE);

int value =
        mgr.getIntProperty(VehiclePropertyIds.SEAT_OCCUPANCY, areaId);

This property is read-only — writes are rejected. It fires a callback whenever the value changes.