updateMapDayNightMode

Updates the Android Auto map's day/night mode, when the user changes it on the Android Auto settings screen.

The implementation persists the choice, emits an AASettingsState with the new AASettingsState.mapDayNightMode, and hands it to the SDK with AndroidAutoStateHolder.setDayNightMode (or the AndroidAutoSurfaceManager.setDayNightMode facade). The SDK restyles the car map on screen, or applies the choice when it next builds one.

Hand the persisted choice to the SDK the same way each time the settings are loaded, too: the SDK keeps no copy of its own across process restarts, and it needs the choice before it builds the first car map of a session.

Default implementation is a no-op, so hosts that do not offer the setting need no change: their car map follows the car (AADayNightMode.AUTO).

Parameters

mode

The day/night mode the user chose

See also