MapColorScheme Stay organized with collections Save and categorize content based on your preferences.
Page Summary
MapColorScheme is an annotation that represents the integer value mapping for dark mode color schemes.
It defines three constants: DARK for dark mode, FOLLOW_SYSTEM to follow device settings, and LIGHT for light mode.
These color schemes can be applied using GoogleMap.setMapColorScheme and GoogleMapOptions.setMapColorScheme.
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
| abstractClass<? extends Annotation> | annotationType() |
| abstract boolean | equals(Object arg0) |
| abstract int | hashCode() |
| abstractString | toString() |
Constants
public static final intDARK
Represents dark mode. Ignoring device settings.
public static final intFOLLOW_SYSTEM
Represents light or dark mode by referring to Configuration.UI_MODE_NIGHT_MASK from device settings.
public static final intLIGHT
Represents light mode. Ignoring device settings.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.