Enum GeofencingErrorCode

java.lang.Object
java.lang.Enum<GeofencingErrorCode>
ch.swisscom.mid.client.model.GeofencingErrorCode
All Implemented Interfaces:
DocumentedEnum, Serializable, Comparable<GeofencingErrorCode>, java.lang.constant.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.
  • Enum Constant Details

    • 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 Details

    • values

      public static GeofencingErrorCode[] 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

      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 name
      NullPointerException - if the argument is null
    • getCode

      public int getCode()
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface DocumentedEnum
    • getByCodeAsString

      public static GeofencingErrorCode getByCodeAsString(String code)