public static enum LocationRequest.ErrorType extends java.lang.Enum<LocationRequest.ErrorType>
Error states for a location request.
Enum Constant and Description |
---|
BAD_APP_KEY
The provided App Key was invalid.
|
BLUETOOTH_REQUEST
Bluetooth needs to be enabled to provide an accurate location.
|
CANCELED
The request was canceled.
|
GPS_REQUEST
Location services need to be enabled to provide an accurate location.
|
TIME_OUT
The request exceeded its time limit.
|
WIFI_REQUEST
Wifi needs to be enabled to provide an accurate location.
|
Modifier and Type | Method and Description |
---|---|
static LocationRequest.ErrorType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LocationRequest.ErrorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LocationRequest.ErrorType CANCELED
public static final LocationRequest.ErrorType TIME_OUT
public static final LocationRequest.ErrorType BLUETOOTH_REQUEST
public static final LocationRequest.ErrorType GPS_REQUEST
public static final LocationRequest.ErrorType WIFI_REQUEST
public static final LocationRequest.ErrorType BAD_APP_KEY
public static LocationRequest.ErrorType[] values()
for (LocationRequest.ErrorType c : LocationRequest.ErrorType.values()) System.out.println(c);
public static LocationRequest.ErrorType 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