示例#1
0
 private bool TrySetupSamsung()
 {
     try
     {
         //try to create a Samsung ID object
         _samsungBiometry = new BiometrySamsungIdentifier(this);
         if (!_samsungBiometry.Init())
         {
             SetError(Resource.String.fingerprint_no_enrolled);
         }
         ShowRadioButtons();
         FindViewById(Resource.Id.container_fingerprint_unlock).Visibility = _samsungBiometry == null
                                 ? ViewStates.Visible
                                 : ViewStates.Gone;
         return(true);
     }
     catch (Exception)
     {
         _samsungBiometry = null;
         return(false);
     }
 }
示例#2
0
 public IdentifyListener(IBiometricAuthCallback callback, Context context, BiometrySamsungIdentifier id)
 {
     _callback = callback;
     _context  = context;
     _id       = id;
 }