예제 #1
0
        public void StartListening(IBiometricAuthCallback callback)
        {
            if (Listening)
            {
                return;
            }

            try
            {
                _spassFingerprint.StartIdentifyWithDialog(_context, new IdentifyListener(callback, _context, this), false);
                Listening = true;
            }
            catch (SpassInvalidStateException m)
            {
                callback.OnBiometricError(m.Message);
            }
            catch (IllegalStateException ex)
            {
                callback.OnBiometricError(ex.Message);
            }
        }
예제 #2
0
 public BiometricAuthCallbackAdapter(IBiometricAuthCallback callback, Context context)
 {
     _callback = callback;
     _context  = context;
 }
예제 #3
0
 public void StartListening(IBiometricAuthCallback callback)
 {
     _biometricAuthCallbackAdapter = new BiometricAuthCallbackAdapter(callback, _activity);
     StartListening(_biometricAuthCallbackAdapter);
 }
예제 #4
0
 public void StartListening(IBiometricAuthCallback callback)
 {
     StartListening(new BiometricAuthCallbackAdapter(callback, _activity));
 }
예제 #5
0
 public IdentifyListener(IBiometricAuthCallback callback, Context context, BiometrySamsungIdentifier id)
 {
     _callback = callback;
     _context  = context;
     _id       = id;
 }