Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Page Properties
hiddentrue

Status

Status
colourYellowGreen
titlefor reviewapproved

Approver

Alpar Szotyori (Unlicensed)

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

Code Block
languagekotlin
GiniCapture.newInstance()
class CustomErrorLogger: ErrorLoggerListener {
    override fun handleErrorLog(errorLog: ErrorLog) {
   .setCustomErrorLoggerListener(new MyErrorLoggerListener())     // Handle the error log event
    }
}

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