customizeCheck method

void customizeCheck({
  1. bool preventScreenRecording = true,
  2. bool checkCaptureProcessIntegrity = true,
  3. bool useFaceApi = true,
  4. bool useAuthenticityCheck = true,
  5. bool useLivenessCheck = true,
  6. bool checkGeometry = false,
  7. bool checkHolo = true,
  8. bool checkED = true,
  9. bool checkBlackAndWhiteCopy = true,
})

Implementation

void customizeCheck({
  bool preventScreenRecording = true,
  bool checkCaptureProcessIntegrity = true,
  bool useFaceApi = true,
  bool useAuthenticityCheck = true,
  bool useLivenessCheck = true,
  bool checkGeometry = false,
  bool checkHolo = true,
  bool checkED = true,
  bool checkBlackAndWhiteCopy = true,
}) {
  DocumentReader.instance.functionality.preventScreenRecording =
      preventScreenRecording;
  DocumentReader.instance.processParams.checkCaptureProcessIntegrity =
      checkCaptureProcessIntegrity;

  DocumentReader.instance.processParams.useFaceApi = useFaceApi;
  DocumentReader.instance.processParams.useAuthenticityCheck =
      useAuthenticityCheck;
  DocumentReader.instance.processParams.authenticityParams.useLivenessCheck =
      useLivenessCheck;

  DocumentReader.instance.processParams.strictImageQuality = true;

  DocumentReader
          .instance
          .processParams
          .authenticityParams
          .livenessParams
          .checkGeometry =
      checkGeometry;
  DocumentReader
          .instance
          .processParams
          .authenticityParams
          .livenessParams
          .checkHolo =
      checkHolo;
  DocumentReader
          .instance
          .processParams
          .authenticityParams
          .livenessParams
          .checkED =
      checkED;
  DocumentReader
          .instance
          .processParams
          .authenticityParams
          .livenessParams
          .checkBlackAndWhiteCopy =
      checkBlackAndWhiteCopy;
}