AuthenticationAvailability enum
Whether the user can authenticate with an AuthenticationMethod, and the
reason why when they can not.
Returned by getAvailability. canAuthenticate is true only when the
availability is available.
Values
- available → const AuthenticationAvailability
-
The user can authenticate.
- notAvailable → const AuthenticationAvailability
-
The device has no hardware for the method, or it can not be used right now.
- notEnrolled → const AuthenticationAvailability
-
The user did not enroll any biometrics.
- lockedOut → const AuthenticationAvailability
-
Biometrics are locked out after too many failed attempts.
Reported on iOS and macOS. Android only reports a lockout when authenticating.
- credentialNotSet → const AuthenticationAvailability
-
The device has no PIN, pattern, passcode or password, and the method needs it.
- unsupportedMethod → const AuthenticationAvailability
-
The platform does not support the method.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
AuthenticationAvailability> - A constant List of the values in this enum, in order of their declaration.