AI-generated Key Takeaways
-
MapColorScheme
is an annotation used to represent the integer value mapping for dark mode color scheme for Google Maps. -
It offers three color scheme options:
DARK
,FOLLOW_SYSTEM
, andLIGHT
. -
DARK
andLIGHT
force the map to use the respective color schemes, whileFOLLOW_SYSTEM
respects the device's system settings. -
This annotation is used by
GoogleMap.setMapColorScheme()
andGoogleMapOptions.setMapColorScheme()
to set the map's color scheme.
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.