MapColorScheme
Stay organized with collections
Save and categorize content based on your preferences.
Represents the integer value mapping for dark mode color scheme.
@see GoogleMap.setMapColorScheme(MapColorScheme)
@see GoogleMapOptions.setMapColorScheme(MapColorScheme).
Inherited Method Summary
From interface java.lang.annotation.Annotation
Constants
public static final int
DARK
Represents dark mode. Ignoring device settings.
Constant Value:
1
public static final int
FOLLOW_SYSTEM
public static final int
LIGHT
Represents light mode. Ignoring device settings.
Constant Value:
0
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eMapColorScheme\u003c/code\u003e is an annotation used to represent the integer value mapping for dark mode color scheme for Google Maps.\u003c/p\u003e\n"],["\u003cp\u003eIt offers three color scheme options: \u003ccode\u003eDARK\u003c/code\u003e, \u003ccode\u003eFOLLOW_SYSTEM\u003c/code\u003e, and \u003ccode\u003eLIGHT\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDARK\u003c/code\u003e and \u003ccode\u003eLIGHT\u003c/code\u003e force the map to use the respective color schemes, while \u003ccode\u003eFOLLOW_SYSTEM\u003c/code\u003e respects the device's system settings.\u003c/p\u003e\n"],["\u003cp\u003eThis annotation is used by \u003ccode\u003eGoogleMap.setMapColorScheme()\u003c/code\u003e and \u003ccode\u003eGoogleMapOptions.setMapColorScheme()\u003c/code\u003e to set the map's color scheme.\u003c/p\u003e\n"]]],["`MapColorScheme` defines integer values for color schemes in map views. It provides three constants: `DARK` (1) for dark mode, `LIGHT` (0) for light mode, and `FOLLOW_SYSTEM` (2) to adapt to the device's night mode settings. These schemes can be applied using `GoogleMap.setMapColorScheme()` or `GoogleMapOptions.setMapColorScheme()`. Inherited methods from the `Annotation` interface such as `annotationType`, `equals`, `hashCode`, and `toString` are also included.\n"],null,["# MapColorScheme\n\npublic abstract @interface **MapColorScheme** implements [Annotation](//developer.android.com/reference/java/lang/annotation/Annotation.html) \nRepresents the integer value mapping for dark mode color scheme.\n\n@see GoogleMap.setMapColorScheme(MapColorScheme)\n\n@see GoogleMapOptions.setMapColorScheme(MapColorScheme). \n\n### Constant Summary\n\n|-----|----------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| int | [DARK](/android/reference/com/google/android/gms/maps/model/MapColorScheme#DARK) | Represents dark mode. |\n| int | [FOLLOW_SYSTEM](/android/reference/com/google/android/gms/maps/model/MapColorScheme#FOLLOW_SYSTEM) | Represents light or dark mode by referring to [Configuration.UI_MODE_NIGHT_MASK](//developer.android.com/reference/android/content/res/Configuration.html#UI_MODE_NIGHT_MASK) from device settings. |\n| int | [LIGHT](/android/reference/com/google/android/gms/maps/model/MapColorScheme#LIGHT) | Represents light mode. |\n\n### Inherited Method Summary\n\nFrom interface java.lang.annotation.Annotation \n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| abstract [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c? extends [Annotation](//developer.android.com/reference/java/lang/annotation/Annotation.html)\\\u003e | annotationType() |\n| abstract boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| abstract int | hashCode() |\n| abstract [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n\nConstants\n---------\n\n#### public static final int\n**DARK**\n\nRepresents dark mode. Ignoring device settings. \nConstant Value: 1 \n\n#### public static final int\n**FOLLOW_SYSTEM**\n\nRepresents light or dark mode by referring to [Configuration.UI_MODE_NIGHT_MASK](//developer.android.com/reference/android/content/res/Configuration.html#UI_MODE_NIGHT_MASK) from device settings. \nConstant Value: 2 \n\n#### public static final int\n**LIGHT**\n\nRepresents light mode. Ignoring device settings. \nConstant Value: 0"]]