Package com.skyhookwireless.wps
Enum WPSReturnCode
- java.lang.Object
-
- java.lang.Enum<WPSReturnCode>
-
- com.skyhookwireless.wps.WPSReturnCode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<WPSReturnCode>
public enum WPSReturnCode extends java.lang.Enum<WPSReturnCode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description WPS_ERROR
Some other error occurred.WPS_ERROR_LOCATION_CANNOT_BE_DETERMINED
A location couldn't be determined.WPS_ERROR_LOCATION_SETTING_DISABLED
Location is disabled by the device settings.WPS_ERROR_NO_WIFI_IN_RANGE
No Wi-Fi access points or cell towers in range.WPS_ERROR_NOT_SUPPORTED
Functionality is not supported.WPS_ERROR_NOT_TUNED
Could not tune the location.WPS_ERROR_SERVER_UNAVAILABLE
The server is unavailable.WPS_ERROR_SERVICE_EXPIRED
Service has expired.WPS_ERROR_UNAUTHORIZED
User authentication failed.WPS_ERROR_WIFI_NOT_AVAILABLE
No Wi-Fi, Cell or GPS hardware was detected.WPS_GEOFENCE_ERROR
An error occurred when processing a geofence.WPS_OK
The call was successful.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WPSReturnCode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static WPSReturnCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WPS_OK
public static final WPSReturnCode WPS_OK
The call was successful.
-
WPS_ERROR_WIFI_NOT_AVAILABLE
public static final WPSReturnCode WPS_ERROR_WIFI_NOT_AVAILABLE
No Wi-Fi, Cell or GPS hardware was detected.
-
WPS_ERROR_NO_WIFI_IN_RANGE
public static final WPSReturnCode WPS_ERROR_NO_WIFI_IN_RANGE
No Wi-Fi access points or cell towers in range.
-
WPS_ERROR_UNAUTHORIZED
public static final WPSReturnCode WPS_ERROR_UNAUTHORIZED
User authentication failed.
-
WPS_ERROR_SERVER_UNAVAILABLE
public static final WPSReturnCode WPS_ERROR_SERVER_UNAVAILABLE
The server is unavailable.
-
WPS_ERROR_LOCATION_CANNOT_BE_DETERMINED
public static final WPSReturnCode WPS_ERROR_LOCATION_CANNOT_BE_DETERMINED
A location couldn't be determined.
-
WPS_GEOFENCE_ERROR
public static final WPSReturnCode WPS_GEOFENCE_ERROR
An error occurred when processing a geofence.- Since:
- 4.4
- See Also:
IWPS.cancelGeoFence(WPSGeoFence.Handle)
-
WPS_ERROR_NOT_TUNED
public static final WPSReturnCode WPS_ERROR_NOT_TUNED
Could not tune the location.- Since:
- 4.7
-
WPS_ERROR_LOCATION_SETTING_DISABLED
public static final WPSReturnCode WPS_ERROR_LOCATION_SETTING_DISABLED
Location is disabled by the device settings.- Since:
- 4.9.2
-
WPS_ERROR_SERVICE_EXPIRED
public static final WPSReturnCode WPS_ERROR_SERVICE_EXPIRED
Service has expired.- Since:
- 5.5.0
-
WPS_ERROR_NOT_SUPPORTED
public static final WPSReturnCode WPS_ERROR_NOT_SUPPORTED
Functionality is not supported.- Since:
- 5.5.0
-
WPS_ERROR
public static final WPSReturnCode WPS_ERROR
Some other error occurred.
-
-
Method Detail
-
values
public static WPSReturnCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (WPSReturnCode c : WPSReturnCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WPSReturnCode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-