Class LAError


  • public final class LAError
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long AppCancel
      Authentication was canceled by application (e.g. invalidate was called while authentication was in progress).
      static long AuthenticationFailed
      Authentication was not successful, because user failed to provide valid credentials.
      static long BiometryLockout
      Authentication was not successful, because there were too many failed biometry attempts and biometry is now locked.
      static long BiometryNotAvailable
      Authentication could not start, because biometry is not available on the device.
      static long BiometryNotEnrolled
      Authentication could not start, because biometry has no enrolled identities.
      static long InvalidContext
      LAContext passed to this call has been previously invalidated.
      static long NotInteractive
      Authentication failed, because it would require showing UI which has been forbidden by using interactionNotAllowed property.
      static long PasscodeNotSet
      Authentication could not start, because passcode is not set on the device.
      static long SystemCancel
      Authentication was canceled by system (e.g. another application went to foreground).
      static long TouchIDLockout
      Authentication was not successful, because there were too many failed Touch ID attempts and Touch ID is now locked.
      static long TouchIDNotAvailable
      Authentication could not start, because Touch ID is not available on the device.
      static long TouchIDNotEnrolled
      Authentication could not start, because Touch ID has no enrolled fingers.
      static long UserCancel
      Authentication was canceled by user (e.g. tapped Cancel button).
      static long UserFallback
      Authentication was canceled, because the user tapped the fallback button (Enter Password).
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • AuthenticationFailed

        public static final long AuthenticationFailed
        Authentication was not successful, because user failed to provide valid credentials.
        See Also:
        Constant Field Values
      • UserCancel

        public static final long UserCancel
        Authentication was canceled by user (e.g. tapped Cancel button).
        See Also:
        Constant Field Values
      • UserFallback

        public static final long UserFallback
        Authentication was canceled, because the user tapped the fallback button (Enter Password).
        See Also:
        Constant Field Values
      • SystemCancel

        public static final long SystemCancel
        Authentication was canceled by system (e.g. another application went to foreground).
        See Also:
        Constant Field Values
      • PasscodeNotSet

        public static final long PasscodeNotSet
        Authentication could not start, because passcode is not set on the device.
        See Also:
        Constant Field Values
      • TouchIDNotAvailable

        public static final long TouchIDNotAvailable
        Authentication could not start, because Touch ID is not available on the device.
        See Also:
        Constant Field Values
      • TouchIDNotEnrolled

        public static final long TouchIDNotEnrolled
        Authentication could not start, because Touch ID has no enrolled fingers.
        See Also:
        Constant Field Values
      • TouchIDLockout

        public static final long TouchIDLockout
        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.
        See Also:
        Constant Field Values
      • AppCancel

        public static final long AppCancel
        Authentication was canceled by application (e.g. invalidate was called while authentication was in progress).
        See Also:
        Constant Field Values
      • InvalidContext

        public static final long InvalidContext
        LAContext passed to this call has been previously invalidated.
        See Also:
        Constant Field Values
      • BiometryNotAvailable

        public static final long BiometryNotAvailable
        Authentication could not start, because biometry is not available on the device.
        See Also:
        Constant Field Values
      • BiometryNotEnrolled

        public static final long BiometryNotEnrolled
        Authentication could not start, because biometry has no enrolled identities.
        See Also:
        Constant Field Values
      • BiometryLockout

        public static final long BiometryLockout
        Authentication was not successful, because there were too many failed biometry attempts and biometry is now locked. Passcode is required to unlock biometry, e.g. evaluating LAPolicyDeviceOwnerAuthenticationWithBiometrics will ask for passcode as a prerequisite.
        See Also:
        Constant Field Values
      • NotInteractive

        public static final long NotInteractive
        Authentication failed, because it would require showing UI which has been forbidden by using interactionNotAllowed property.
        See Also:
        Constant Field Values