public enum LocationMode extends java.lang.Enum<LocationMode>
LocationMode enumeration defines different location systems that can be selectively
activated to help the Android LocationManager.| Enum Constant and Description |
|---|
NETWORK
Indicates only the localization mechanism based on networks will be
activated
|
OFF
Indicates all the possible systems are turned off
|
SENSORS
Indicates only the dedicated GPS system is activated
|
SENSORS_AND_NETWORK
Indicates all the possible systems are turned on: both GPS sensors and
network assisted localization
|
| Modifier and Type | Method and Description |
|---|---|
static LocationMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LocationMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LocationMode OFF
public static final LocationMode SENSORS
public static final LocationMode NETWORK
public static final LocationMode SENSORS_AND_NETWORK
public static LocationMode[] values()
for (LocationMode c : LocationMode.values()) System.out.println(c);
public static LocationMode 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