public enum LocationProviderName extends java.lang.Enum<LocationProviderName>
| Enum Constant and Description |
|---|
GPS
LocationManager.GPS_PROVIDER |
NETWORK
LocationManager.NETWORK_PROVIDER |
PASSIVE
LocationManager.PASSIVE_PROVIDER |
| Modifier and Type | Method and Description |
|---|---|
static LocationProviderName |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LocationProviderName[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LocationProviderName GPS
LocationManager.GPS_PROVIDERpublic static final LocationProviderName NETWORK
LocationManager.NETWORK_PROVIDERpublic static final LocationProviderName PASSIVE
LocationManager.PASSIVE_PROVIDERpublic static LocationProviderName[] values()
for (LocationProviderName c : LocationProviderName.values()) System.out.println(c);
public static LocationProviderName 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