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); } }
public BiometricAuthCallbackAdapter(IBiometricAuthCallback callback, Context context) { _callback = callback; _context = context; }
public void StartListening(IBiometricAuthCallback callback) { _biometricAuthCallbackAdapter = new BiometricAuthCallbackAdapter(callback, _activity); StartListening(_biometricAuthCallbackAdapter); }
public void StartListening(IBiometricAuthCallback callback) { StartListening(new BiometricAuthCallbackAdapter(callback, _activity)); }
public IdentifyListener(IBiometricAuthCallback callback, Context context, BiometrySamsungIdentifier id) { _callback = callback; _context = context; _id = id; }