Skip to end of banner
Go to start of banner

Error Logging Guide

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

The SDK logs networking and camera related errors to Gini Bank API when the default networking implementation is used. You can deactivate the default error logging by passing false to GiniBank.setCaptureConfiguration(CaptureConfiguration(giniErrorLoggerIsOn = )). If you want to get informed of the error logging events, pass your implementation of the ErrorLoggerListener interface to GiniBank.setCaptureConfiguration(CaptureConfiguration(errorLoggerListener = )):

class CustomErrorLogger: ErrorLoggerListener {
    override fun handleErrorLog(errorLog: ErrorLog) {
        // Handle the error log event
    }
}

GiniBank.setCaptureConfiguration(context,
    CaptureConfiguration(
        errorLoggerListener = CustomErrorLogger()
    )
)

  • No labels