MapColorScheme

  • 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.

public abstract @interfaceMapColorScheme implementsAnnotation

Represents the integer value mapping for dark mode color scheme.

@see GoogleMap.setMapColorScheme(MapColorScheme)

@see GoogleMapOptions.setMapColorScheme(MapColorScheme).

Constant Summary

intDARKRepresents dark mode.
int FOLLOW_SYSTEMRepresents light or dark mode by referring to Configuration.UI_MODE_NIGHT_MASK from device settings.
intLIGHTRepresents light mode.

Inherited Method Summary

From interface java.lang.annotation.Annotation
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.

Constant Value:1

public static final intFOLLOW_SYSTEM

Represents light or dark mode by referring to Configuration.UI_MODE_NIGHT_MASK from device settings.

Constant Value:2

public static final intLIGHT

Represents light mode. Ignoring device settings.

Constant Value:0

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.