Package ch.swisscom.mid.client.model
Enum GeofencingErrorCode
- java.lang.Object
-
- java.lang.Enum<GeofencingErrorCode>
-
- ch.swisscom.mid.client.model.GeofencingErrorCode
-
- All Implemented Interfaces:
DocumentedEnum,Serializable,Comparable<GeofencingErrorCode>
public enum GeofencingErrorCode extends Enum<GeofencingErrorCode> implements DocumentedEnum
Enumeration with possible Geofencing error codes. See Mobile ID Reference Guide, section 3.2.4.2.4.
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GeofencingErrorCodegetByCodeAsString(String code)intgetCode()StringgetDescription()static GeofencingErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static GeofencingErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FEATURE_DISABLED
public static final GeofencingErrorCode FEATURE_DISABLED
-
CANNOT_RETRIEVE_LOCATION_INSUFFICIENT_RESOURCES
public static final GeofencingErrorCode CANNOT_RETRIEVE_LOCATION_INSUFFICIENT_RESOURCES
-
NO_GRANT_RESPONSE
public static final GeofencingErrorCode NO_GRANT_RESPONSE
-
USER_DENIED_APP_PERMISSION
public static final GeofencingErrorCode USER_DENIED_APP_PERMISSION
-
USER_CANNOT_ENABLE_LOCATION
public static final GeofencingErrorCode USER_CANNOT_ENABLE_LOCATION
-
USER_TURNED_OFF_LOCATION
public static final GeofencingErrorCode USER_TURNED_OFF_LOCATION
-
DEVICE_IN_AIRPLANE_MODE
public static final GeofencingErrorCode DEVICE_IN_AIRPLANE_MODE
-
CANNOT_RETRIEVE_LOCATION_UNKNOWN_CAUSE
public static final GeofencingErrorCode CANNOT_RETRIEVE_LOCATION_UNKNOWN_CAUSE
-
INTERNAL_ERROR
public static final GeofencingErrorCode INTERNAL_ERROR
-
AP_NOT_AUTHORIZED_TO_REQUEST_GEOFENCING
public static final GeofencingErrorCode AP_NOT_AUTHORIZED_TO_REQUEST_GEOFENCING
-
USER_HAS_NON_SWISSCOM_SIM
public static final GeofencingErrorCode USER_HAS_NON_SWISSCOM_SIM
-
CANNOT_RETRIEVE_LOCATION_EMPTY_RESPONSE
public static final GeofencingErrorCode CANNOT_RETRIEVE_LOCATION_EMPTY_RESPONSE
-
USER_HAS_OUTDATED_APP
public static final GeofencingErrorCode USER_HAS_OUTDATED_APP
-
-
Method Detail
-
values
public static GeofencingErrorCode[] 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 (GeofencingErrorCode c : GeofencingErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GeofencingErrorCode valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getCode
public int getCode()
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceDocumentedEnum
-
getByCodeAsString
public static GeofencingErrorCode getByCodeAsString(String code)
-
-