public static enum LocationClientOption.BDLocationPurpose extends java.lang.Enum<LocationClientOption.BDLocationPurpose>
Enum Constant and Description |
---|
SignIn
签到场景
只进行一次定位返回最接近真实位置的定位结果(定位速度可能会延迟1-3s)
|
Sport
出行场景
高精度连续定位,适用于有户内外切换的场景,卫星定位和网络定位相互切换,卫星定位成功之后网络定位不再返回,卫星信号断开之后一段时间才会返回网络结果
|
Transport
运动场景
高精度连续定位,适用于有户内外切换的场景,卫星定位和网络定位相互切换,卫星定位成功之后网络定位不再返回,卫星信号断开之后一段时间才会返回网络结果
|
Modifier and Type | Method and Description |
---|---|
static LocationClientOption.BDLocationPurpose |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LocationClientOption.BDLocationPurpose[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LocationClientOption.BDLocationPurpose SignIn
public static final LocationClientOption.BDLocationPurpose Sport
public static final LocationClientOption.BDLocationPurpose Transport
public static LocationClientOption.BDLocationPurpose[] values()
for (LocationClientOption.BDLocationPurpose c : LocationClientOption.BDLocationPurpose.values()) System.out.println(c);
public static LocationClientOption.BDLocationPurpose valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null