Skip to content
Vehicle properties
External conditions

NIGHT_MODE

What it is

Night mode

True indicates that the night mode sensor has detected that the car cabin environment has low light. The platform could use this, for example, to enable appropriate UI for better viewing in dark or low light environments.

How the ID is built

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

FieldMaskValueMeans
Group0xf00000000x10000000SYSTEM
Area0x0f0000000x01000000GLOBAL
Type0x00ff00000x00200000BOOLEAN
Ordinal0x0000ffff0x000004070x407

Reading it from an app

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

boolean value =
        mgr.getBooleanProperty(VehiclePropertyIds.NIGHT_MODE, 0);

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