code -8번항을 보려고 들어갔다가 그냥 전부 정리해두려고 적습니다.
애플 개발자문서에서는 이름만 나오고 값소개가 안되있길래 그냥 라이브러리쪽 복사해서 보기편하려고 번역기 돌렸습니다.
public enum Code : Int {
/// Authentication was not successful, because user failed to provide valid credentials.
// 사용자가 유효한 자격 증명을 제공하지 못했기 때문에 인증에 실패했습니다.
case authenticationFailed = -1
/// Authentication was canceled by user (e.g. tapped Cancel button).
/// 사용자가 인증을 취소했습니다 (예 : 취소 버튼을 탭함).
case userCancel = -2
/// Authentication was canceled, because the user tapped the fallback button (Enter Password).
/// 사용자가 대체 버튼 (암호 입력)을 탭했기 때문에 인증이 취소되었습니다.
case userFallback = -3
/// Authentication was canceled by system (e.g. another application went to foreground).
/// 시스템에서 인증을 취소했습니다 (예 : 다른 애플리케이션이 포 그라운드로 전환됨).
case systemCancel = -4
/// Authentication could not start, because passcode is not set on the device.
/// 기기에 비밀번호가 설정되어 있지 않아 인증을 시작할 수 없습니다.
case passcodeNotSet = -5
/// Authentication could not start, because Touch ID is not available on the device.
/// 장치에서 Touch ID를 사용할 수 없어 인증을 시작할 수 없습니다.
@available(iOS, introduced: 8.0, deprecated: 11.0, message: "use LAErrorBiometryNotAvailable")
case touchIDNotAvailable = -6
/// Authentication could not start, because Touch ID has no enrolled fingers.
/// Touch ID에 등록 된 손가락이 없어 인증을 시작할 수 없습니다.
@available(iOS, introduced: 8.0, deprecated: 11.0, message: "use LAErrorBiometryNotEnrolled")
case touchIDNotEnrolled = -7
/// Authentication was not successful, because there were too many failed Touch ID attempts and
/// Touch ID is now locked. Passcode is required to unlock Touch ID, e.g. evaluating
/// LAPolicyDeviceOwnerAuthenticationWithBiometrics will ask for passcode as a prerequisite.
@available(iOS, introduced: 9.0, deprecated: 11.0, message: "use LAErrorBiometryLockout")
/// 실패한 Touch ID 시도가 너무 많았 기 때문에 인증에 실패했습니다.
/// 이제 Touch ID가 잠겨 있습니다. Touch ID를 잠금 해제하려면 암호가 필요합니다. 평가
/// LAPolicyDeviceOwnerAuthenticationWithBiometrics는 전제 조건으로 암호를 요청합니다.
case touchIDLockout = -8
/// Authentication was canceled by application (e.g. invalidate was called while
/// authentication was in progress).
/// 인증이 애플리케이션에 의해 취소되었습니다 (예 : invalidate가 호출되는 동안
/// 인증이 진행 중입니다)
@available(iOS 9.0, *)
case appCancel = -9
/// LAContext passed to this call has been previously invalidated.
///이 호출에 전달 된 LAContext는 이전에 무효화되었습니다.
@available(iOS 9.0, *)
case invalidContext = -10
/// 장치에서 생체 측정을 사용할 수 없기 때문에 인증을 시작할 수 없습니다.
@available (iOS 11.0, *)
public static var biometryNotAvailable : LAError.Code {get}
/// 생체 측정에 등록 된 ID가 없기 때문에 인증을 시작할 수 없습니다.
@available (iOS 11.0, *)
public static var biometryNotEnrolled : LAError.Code {get}
/// 실패한 생체 측정 시도가 너무 많았 기 때문에 인증에 실패했습니다.
/// 이제 생체 측정이 잠겨 있습니다. 생체 측정을 잠금 해제하려면 암호가 필요합니다. 평가
/// LAPolicyDeviceOwnerAuthenticationWithBiometrics는 전제 조건으로 암호를 요청합니다.
@available (iOS 11.0, *)
public static var biometryLockout : LAError.Code {get}
/// 금지 된 UI를 표시해야하므로 인증에 실패했습니다.
/// interactionNotAllowed 속성을 사용합니다.
@available (iOS 8.0, *)
case notInteractive = -1004
}
'iOS > swift' 카테고리의 다른 글
[Swift5] Struct -> JSON -> String, Dictionary (0) | 2020.12.31 |
---|---|
문자열 내부의 단어를 찾는 방법 (0) | 2020.11.25 |
Firebase를 다루면서 계속해서 가져온 라이브러리문제가 발생한이유 (0) | 2020.08.20 |
firebase를 다루면서 며칠만에 열어본 프로젝트가 오류를 뱉는다. (0) | 2020.08.19 |
Swift 커스텀 키보드 진행과 한글 자음/모음 조합 (0) | 2020.05.30 |