I am trying to figure out if user has unlocked the device with the traditional PIN/Password method or with the biometrics like Face unlock or Fingerprint. I tried some answers out there like https://stackoverflow.com/a/28694962/10357086 and https://stackoverflow.com/a/3451916/10357086.
I'm still unable to get the exact solution for this. Is it possible to do so? And if it is, then how would I get it? All the answers I found are either about implementing the biometric authentication or about showing a fingerprint authentication dialog whenever needed.
But I don't want that. I want to check how the device was unlocked by the user?
TL;DR : I just want to know if the device is unlocked with the biometrics or PIN/Password method so that I can perform the next action based on it in my app.