public void StartFingerprintAuthentication(Action onAuthenticationsuccess, Action onAuthenticationFailure)
 {
     if (IsFingerprintSupported())
     {
         Permission permissionResult = ContextCompat.CheckSelfPermission(activity, Manifest.Permission.UseFingerprint);
         if (permissionResult == Permission.Granted)
         {
             var dialogFragment = new FingerprintManagerApiDialogFragment(onAuthenticationsuccess, onAuthenticationFailure);
             dialogFragment.Init();
             dialogFragment.Show(fragmentManager, "fingerprint_auth_fragment");
         }
         else
         {
             // As Fingerprint authentication is a normal permission so no need to ask explicitly permission for it.
             onAuthenticationFailure?.Invoke();
         }
     }
     else
     {
         onAuthenticationFailure?.Invoke();
     }
 }
 public SimpleAuthCallbacks(FingerprintManagerApiDialogFragment frag)
 {
     fragment = frag;
 }