title: How to check user's Bio-Metric Preference through Biometric api?
body: <p>As we all know, from android 9.0, android introduced <strong>BiometricPrompt</strong> <strong>Api</strong> to provide standard authentication experience across growing range of biometric sensors (E.g Fingerprint,Face ID etc).</p>
  
  <p>Now with this new BiometricPrompt Api user can get authenticated via fingerprint, face scanner or iris scanned (depend on their biometric preference). BiometricPrompt api will take care of this and it will notify us via various callbacks.</p>
  
  <p>Below is my code to display Biometric Prompt.</p>
  
  <pre><code> biometricPrompt = new BiometricPrompt.Builder(context)
              .setTitle("FingerPrint Authentication")
              .setSubtitle("Login via Fingerprint")
              .setDescription("Touch Fingerprint Sensor")
              .setNegativeButton("Cancel", context.getMainExecutor(),
                      new DialogInterface.OnClickListener() {
                          @Override
                          public void onClick(DialogInterface dialogInterface, int i) {
                              Log.d(TAG,"Cancelled");
                          }
                      })
              .build();
  </code></pre>
  
  <p>Now if you see my code, i am setting title as a <strong>Fingerprint Authentication</strong>. Now in device setting, if user had set a Biometric Preference as a <strong>Face ID</strong> instead of <strong>FingerPrint</strong> then this <strong>biometricPrompt</strong> will authenticate user via faceID and fingerprint sensor wont work even if user keep touching sensor. This would create confusion as Biometric title is saying that "Fingerprint authentication" and user is actually getting authenticated via <strong>faceID</strong></p>
  
  <p>Is there any way by which we can know what Biometric preference user has selected (e.g Fingerprint or FaceID)? So based upon that preference i can show appropriate message on BiometricPrompt so user wont get confused.</p>
  
  <p>I already explored all api from BiometricPrompt but could find anything related to BiometricPreference.</p>
  
  <p>Any help would be highly appreciated.</p>