Enum Class DayNightMode

java.lang.Object
java.lang.Enum<DayNightMode>
com.baidu.mapapi.common.model.DayNightMode
All Implemented Interfaces:
Serializable, Comparable<DayNightMode>, Constable

public enum DayNightMode extends Enum<DayNightMode>
Created by hexiaojiang on 2025/2/24 骑行导航日夜模式
  • Enum Constant Details

    • DAY

      public static final DayNightMode DAY
      日间模式
    • NIGHT

      public static final DayNightMode NIGHT
      夜间模式
    • AUTO

      public static final DayNightMode AUTO
      自动模式,根据日出日落时间自动切换白天/黑夜,需传入经纬度
  • Method Details

    • values

      public static DayNightMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DayNightMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()