on Error
Optional error capture callback. Called for every ro.eidkit.sdk.error.CeiError thrown during a session, before the error is re-thrown to the caller.
Use this to forward handled SDK errors to your crash/error tracking backend:
onError = { e -> Sentry.captureException(e) }Content copied to clipboard
The error is always re-thrown regardless of what this callback does. If null (default), no capture occurs.
PII guarantee
ro.eidkit.sdk.error.CeiError subtypes never contain card data — only error type, SW codes, and remaining PIN attempt counts. Safe to forward to telemetry.