If (ntains(BiometricType.strong) ||Īntains(BiometricType.face)) else if (e.code = auth_error.lockedOut ||Į.code = auth_error. Types and only check that some biometric is enrolled: final List availableBiometrics = The types are device-specific and platform-specific, and other types may beĪdded in the future, so when possible you should not rely on specific biometric Updates the TextView that displays the total price, converting it into a currency format using the Kotlin extension defined in StringUtils.kt. The same singleton object is read by both the Java code in the calculator and above in the Kotlin code. To get a list of enrolledīiometrics, call getAvailableBiometrics(). The Java method reads the Kotlin singleton internally and returns the total price. Whether the device has any biometrics enrolled. IsDeviceSupported() (if you just need some device-level authentication): import 'package:local_auth/local_auth.dart' įinal LocalAuthentication auth = LocalAuthentication() įinal bool canAuthenticateWithBiometrics = await auth.canCheckBiometrics ĬanAuthenticateWithBiometrics || await auth.isDeviceSupported() Ĭurrently the following biometric types are implemented:ĬanCheckBiometrics only indicates whether hardware support is available, not (There are weak globals too, but they have a separate type, jweak, and aren’t interesting here.) The global/local distinction affects both lifetime and scope. Any given jobject can be either local or global. To check whether there is local authentication available on this device or not,Ĭall canCheckBiometrics (if you need biometrics support) and/or The two most important kinds are local references and global references. On supported devices, this includes authentication with biometrics such as This Flutter plugin provides means to perform local, on-device authentication of
0 Comments
Leave a Reply. |