AADayNightMode

The day/night mode the user chose for the Android Auto map.

Android Auto tells the app whether the car is in night mode (CarContext.isDarkMode, read by MSDKSession). By default the map follows it: AUTO. The user can instead keep the map in day or in night colours at all times: DAY, NIGHT. The Android Auto app quality guidelines require the default behaviour and allow this choice on top of it (guideline MR-1).

Where it lives

See also

Entries

Link copied to clipboard

Follow the car: the map is dark when the car is in night mode. The default.

Link copied to clipboard

Always the day (light) map, whatever the car's mode.

Link copied to clipboard

Always the night (dark) map, whatever the car's mode.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun isMapDark(isCarDarkMode: Boolean): Boolean

Whether the map is drawn dark under this mode.

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.