public void StartListening(Context ctx, IFingerprintAuthCallback callback) { if (Listening) { return; } try { _spassFingerprint.StartIdentifyWithDialog(ctx, new IdentifyListener(callback, ctx, this), false); Listening = true; } catch (SpassInvalidStateException m) { callback.OnFingerprintError(m.Message); } catch (IllegalStateException ex) { callback.OnFingerprintError(ex.Message); } }
public FingerprintAuthCallbackAdapter(IFingerprintAuthCallback callback, Context context) { _callback = callback; _context = context; }
public void StartListening(Context ctx, IFingerprintAuthCallback callback) { StartListening(new FingerprintAuthCallbackAdapter(callback, ctx)); }
public IdentifyListener(IFingerprintAuthCallback callback, Context context, FingerprintSamsungIdentifier id) { _callback = callback; _context = context; _id = id; }