Page Summary
-
MapColorSchemeis an annotation used to define the color scheme for a Google Map, supporting dark, light, or system-dependent modes. -
Developers can set the color scheme using
GoogleMap.setMapColorScheme()orGoogleMapOptions.setMapColorScheme(). -
The
DARK,FOLLOW_SYSTEM, andLIGHTconstants represent the available color scheme options. -
DARKandLIGHTignore device settings whileFOLLOW_SYSTEMadheres to the device's UI mode.
Represents the integer value mapping for dark mode color scheme.
@see GoogleMap.setMapColorScheme(MapColorScheme)
@see GoogleMapOptions.setMapColorScheme(MapColorScheme).
Constant Summary
| int | DARK | Represents dark mode. |
| int | FOLLOW_SYSTEM | Represents light or dark mode by referring to Configuration.UI_MODE_NIGHT_MASK from device settings. |
| int | LIGHT | Represents light mode. |
Inherited Method Summary
Constants
public static final int DARK
Represents dark mode. Ignoring device settings.
public static final int FOLLOW_SYSTEM
Represents light or dark mode by referring to Configuration.UI_MODE_NIGHT_MASK from device settings.
public static final int LIGHT
Represents light mode. Ignoring device settings.