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
abstract Class<? extends Annotation>
|
annotationType()
|
abstract boolean |
|
abstract int |
hashCode()
|
abstract String
|
toString()
|
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."],[[["`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`, and `LIGHT`."],["`DARK` and `LIGHT` force the map to use the respective color schemes, while `FOLLOW_SYSTEM` respects the device's system settings."],["This annotation is used by `GoogleMap.setMapColorScheme()` and `GoogleMapOptions.setMapColorScheme()` to set the map's color scheme."]]],["`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"]]