Within the new Android P Developer Preview, Google added a brand new API for biometric authentication. Dubbed BiometricPrompt, uninspiring as that can appear, this new API replaces the FingerprintDialog that we were given within the final DP. As an alternative of being restricted to 1 manner of confirming a consumer, BiometricPrompt has beef up for face, iris, or even in-display fingerprint sensors.

The instructed that presentations obviates the desire for builders to incorporate their very own authentication popups. All it takes is a unmarried permission, USE_BIOMETRIC, which covers all biometrics that the tool helps. All of this to mention, Google is pushing for a unified aesthetic for authenticating a purchase order or logging into an app.

Devs, for those who’ve already applied the FingerprintManager, Google urges you to transition to BiometricPrompt briefly, because the former (and its corresponding USE_FINGERPRINT permission) is now deprecated.