repitch
repitch

Reputation: 1888

Android API for on-screen fingerprint

Some new android devices come with on-screen fingerprint sensors
Here are bunch of them: https://www.smartprix.com/bytes/7-best-phones-with-under-display-fingerprint-sensor/

During fingerprint authentication the icon appears on screen, where user can put his finger on. Like this one:
enter image description here

This cause some troubles with overlapping screen contents with this icon (like pin-keyboard)

Is there some way in android's API to define:

  1. If device has on-screen fingerprint
  2. Then, if has, it's coordinates on the screen

Upvotes: 11

Views: 2047

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006584

No, sorry, in the current Android SDK, there is nothing for either of these.

This cause some troubles with overlapping screen contents with this icon (like pin-keyboard)

Since fingerprints should not be collected except when you specifically request it (e.g., via BiometricPrompt), and since that has its own UI, my hope is that you should not run into any situation where the fingerprint sensor interferes with existing UI.

Upvotes: 2

Related Questions