Enum WPSReturnCode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<WPSReturnCode>

    public enum WPSReturnCode
    extends java.lang.Enum<WPSReturnCode>
    • 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_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 name
        java.lang.NullPointerException - if the argument is null