Package ch.swisscom.mid.client.model
Enum GeofencingErrorCode
- All Implemented Interfaces:
DocumentedEnum,Serializable,Comparable<GeofencingErrorCode>,Constable
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.
-
Nested Class Summary
-
Enum Constant Summary
-
Method Summary
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 Details
-
FEATURE_DISABLED
-
CANNOT_RETRIEVE_LOCATION_INSUFFICIENT_RESOURCES
-
NO_GRANT_RESPONSE
-
USER_DENIED_APP_PERMISSION
-
USER_CANNOT_ENABLE_LOCATION
-
USER_TURNED_OFF_LOCATION
-
DEVICE_IN_AIRPLANE_MODE
-
CANNOT_RETRIEVE_LOCATION_UNKNOWN_CAUSE
-
INTERNAL_ERROR
-
AP_NOT_AUTHORIZED_TO_REQUEST_GEOFENCING
-
USER_HAS_NON_SWISSCOM_SIM
-
CANNOT_RETRIEVE_LOCATION_EMPTY_RESPONSE
-
USER_HAS_OUTDATED_APP
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
- Specified by:
getDescriptionin interfaceDocumentedEnum
-
getByCodeAsString
-