getEnrolledBiometrics method

  1. @override
Future<List<BiometricType>> getEnrolledBiometrics()
override

Returns a list of enrolled biometrics.

Possible values include:

  • BiometricType.face
  • BiometricType.fingerprint
  • BiometricType.iris (not yet implemented)
  • BiometricType.strong
  • BiometricType.weak

Implementation

@override
Future<List<BiometricType>> getEnrolledBiometrics() async {
  // Windows doesn't support querying specific biometric types. Since the
  // OS considers this a strong authentication API, return weak+strong on
  // any supported device.
  if (await isDeviceSupported()) {
    return <BiometricType>[BiometricType.weak, BiometricType.strong];
  }
  return <BiometricType>[];
}