@@ -18,6 +18,7 @@ import androidx.core.content.ContextCompat
1818import com.regula.documentreader.api.enums.CustomizationColor
1919import com.regula.documentreader.api.enums.CustomizationFont
2020import com.regula.documentreader.api.enums.CustomizationImage
21+ import com.regula.documentreader.api.enums.LogLevel
2122import com.regula.documentreader.api.params.AuthenticityParams
2223import com.regula.documentreader.api.params.Functionality
2324import com.regula.documentreader.api.params.ImageQA
@@ -133,6 +134,7 @@ fun setProcessParams(processParams: ProcessParam, opts: JSONObject) = opts.forEa
133134 " useFaceApi" -> processParams.useFaceApi = v as Boolean
134135 " useAuthenticityCheck" -> processParams.useAuthenticityCheck = v as Boolean
135136 " checkHologram" -> processParams.checkHologram = v as Boolean
137+ " generateNumericCodes" -> processParams.generateNumericCodes = v as Boolean
136138 " measureSystem" -> processParams.measureSystem = v.toInt()
137139 " barcodeParserType" -> processParams.barcodeParserType = v.toInt()
138140 " perspectiveAngle" -> processParams.perspectiveAngle = v.toInt()
@@ -146,6 +148,8 @@ fun setProcessParams(processParams: ProcessParam, opts: JSONObject) = opts.forEa
146148 " imageOutputMaxWidth" -> processParams.imageOutputMaxWidth = v.toInt()
147149 " processAuth" -> processParams.processAuth = v.toInt()
148150 " convertCase" -> processParams.convertCase = v.toInt()
151+ " logLevel" -> processParams.logLevel = LogLevel .valueOf(v.toString())
152+ " mrzDetectMode" -> processParams.mrzDetectMode = v.toInt()
149153 " dateFormat" -> processParams.dateFormat = v as String
150154 " scenario" -> processParams.scenario = v as String
151155 " captureButtonScenario" -> processParams.captureButtonScenario = v as String
@@ -154,6 +158,7 @@ fun setProcessParams(processParams: ProcessParam, opts: JSONObject) = opts.forEa
154158 " timeoutFromFirstDetect" -> processParams.timeoutFromFirstDetect = v.toDouble()
155159 " timeoutFromFirstDocType" -> processParams.timeoutFromFirstDocType = v.toDouble()
156160 " documentAreaMin" -> processParams.documentAreaMin = v.toDouble()
161+ " timeoutLiveness" -> processParams.timeoutLiveness = v.toDouble()
157162 " documentIDList" -> processParams.documentIDList = v.toIntArray()
158163 " fieldTypesFilter" -> processParams.fieldTypesFilter = v.toIntArray()
159164 " resultTypeOutput" -> processParams.resultTypeOutput = v.toIntArray()
@@ -207,6 +212,7 @@ fun getProcessParams(processParams: ProcessParam) = mapOf(
207212 " useFaceApi" to processParams.useFaceApi,
208213 " useAuthenticityCheck" to processParams.useAuthenticityCheck,
209214 " checkHologram" to processParams.checkHologram,
215+ " generateNumericCodes" to processParams.generateNumericCodes,
210216 " measureSystem" to processParams.measureSystem,
211217 " barcodeParserType" to processParams.barcodeParserType,
212218 " perspectiveAngle" to processParams.perspectiveAngle,
@@ -220,6 +226,8 @@ fun getProcessParams(processParams: ProcessParam) = mapOf(
220226 " imageOutputMaxWidth" to processParams.imageOutputMaxWidth,
221227 " processAuth" to processParams.processAuth,
222228 " convertCase" to processParams.convertCase,
229+ " logLevel" to processParams.logLevel?.toString(),
230+ " mrzDetectMode" to processParams.mrzDetectMode,
223231 " dateFormat" to processParams.dateFormat,
224232 " scenario" to processParams.scenario,
225233 " captureButtonScenario" to processParams.captureButtonScenario,
@@ -228,6 +236,7 @@ fun getProcessParams(processParams: ProcessParam) = mapOf(
228236 " timeoutFromFirstDetect" to processParams.timeoutFromFirstDetect,
229237 " timeoutFromFirstDocType" to processParams.timeoutFromFirstDocType,
230238 " documentAreaMin" to processParams.documentAreaMin,
239+ " timeoutLiveness" to processParams.timeoutLiveness,
231240 " documentIDList" to processParams.documentIDList.generate(),
232241 " fieldTypesFilter" to processParams.fieldTypesFilter.generate(),
233242 " documentGroupFilter" to processParams.documentGroupFilter.generate(),
@@ -654,6 +663,7 @@ fun setColors(input: ParamsCustomization.CustomizationEditor, opts: JSONObject)
654663 " rfidProcessingScreenProgressBar" -> input.setColor(CustomizationColor .RFID_PROCESSING_SCREEN_PROGRESS_BAR , value)
655664 " rfidProcessingScreenProgressBarBackground" -> input.setColor(CustomizationColor .RFID_PROCESSING_SCREEN_PROGRESS_BAR_BACKGROUND , value)
656665 " rfidProcessingScreenResultLabelText" -> input.setColor(CustomizationColor .RFID_PROCESSING_SCREEN_RESULT_LABEL_TEXT , value)
666+ " rfidProcessingScreenLoadingBar" -> input.setColor(CustomizationColor .RFID_PROCESSING_SCREEN_LOADING_BAR , value)
657667 }
658668}
659669
@@ -665,6 +675,7 @@ fun getColors(input: Map<CustomizationColor, Long>) = mapOf(
665675 " rfidProcessingScreenProgressBar" to input[CustomizationColor .RFID_PROCESSING_SCREEN_PROGRESS_BAR ],
666676 " rfidProcessingScreenProgressBarBackground" to input[CustomizationColor .RFID_PROCESSING_SCREEN_PROGRESS_BAR_BACKGROUND ],
667677 " rfidProcessingScreenResultLabelText" to input[CustomizationColor .RFID_PROCESSING_SCREEN_RESULT_LABEL_TEXT ],
678+ " rfidProcessingScreenLoadingBar" to input[CustomizationColor .RFID_PROCESSING_SCREEN_LOADING_BAR ],
668679).toJsonObject()
669680
670681fun setFonts (input : ParamsCustomization .CustomizationEditor , opts : JSONObject ) = opts.forEach { key, value ->
0 commit comments