Package com.baidu.mapapi.common.model
Enum Class DayNightMode
- All Implemented Interfaces:
Serializable,Comparable<DayNightMode>,Constable
Created by hexiaojiang
on 2025/2/24
骑行导航日夜模式
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionintgetValue()static DayNightModeReturns the enum constant of this class with the specified name.static DayNightMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DAY
日间模式 -
NIGHT
夜间模式 -
AUTO
自动模式,根据日出日落时间自动切换白天/黑夜,需传入经纬度
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getValue
public int getValue()
-