getEnrolledBiometrics method
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 {
final List<AuthClassification> result = await _api.getEnrolledBiometrics();
return result.map((AuthClassification value) {
switch (value) {
case AuthClassification.weak:
return BiometricType.weak;
case AuthClassification.strong:
return BiometricType.strong;
}
}).toList();
}