@@ -47,6 +47,7 @@ fun setFunctionality(config: Functionality, input: JSONObject) = input.forEach {
4747 " recordScanningProcess" -> editor.setDoRecordProcessingVideo(v as Boolean )
4848 " manualMultipageMode" -> editor.setManualMultipageMode(v as Boolean )
4949 " torchTurnedOn" -> editor.setTorchTurnedOn(v as Boolean )
50+ " preventScreenRecording" -> editor.setPreventScreenRecording(v as Boolean )
5051 " showCaptureButtonDelayFromDetect" -> editor.setShowCaptureButtonDelayFromDetect(v.toLong())
5152 " showCaptureButtonDelayFromStart" -> editor.setShowCaptureButtonDelayFromStart(v.toLong())
5253 " orientation" -> editor.setOrientation(v.toInt())
@@ -82,6 +83,7 @@ fun getFunctionality(input: Functionality) = mapOf(
8283 " recordScanningProcess" to input.doRecordProcessingVideo(),
8384 " manualMultipageMode" to input.isManualMultipageMode,
8485 " torchTurnedOn" to input.isTorchTurnedOn,
86+ " preventScreenRecording" to input.doPreventScreenRecording(),
8587 " showCaptureButtonDelayFromDetect" to input.showCaptureButtonDelayFromDetect,
8688 " showCaptureButtonDelayFromStart" to input.showCaptureButtonDelayFromStart,
8789 " orientation" to input.orientation,
@@ -141,6 +143,7 @@ fun setProcessParams(processParams: ProcessParam, opts: JSONObject) = opts.forEa
141143 " generateAlpha2Codes" -> processParams.generateAlpha2Codes = v as Boolean
142144 " disableAuthResolutionFilter" -> processParams.disableAuthResolutionFilter = v as Boolean
143145 " strictSecurityChecks" -> processParams.strictSecurityChecks = v as Boolean
146+ " returnTransliteratedFields" -> processParams.returnTransliteratedFields = v as Boolean
144147 " measureSystem" -> processParams.measureSystem = v.toInt()
145148 " barcodeParserType" -> processParams.barcodeParserType = v.toInt()
146149 " perspectiveAngle" -> processParams.perspectiveAngle = v.toInt()
@@ -227,6 +230,7 @@ fun getProcessParams(processParams: ProcessParam) = mapOf(
227230 " generateAlpha2Codes" to processParams.generateAlpha2Codes,
228231 " disableAuthResolutionFilter" to processParams.disableAuthResolutionFilter,
229232 " strictSecurityChecks" to processParams.strictSecurityChecks,
233+ " returnTransliteratedFields" to processParams.returnTransliteratedFields,
230234 " measureSystem" to processParams.measureSystem,
231235 " barcodeParserType" to processParams.barcodeParserType,
232236 " perspectiveAngle" to processParams.perspectiveAngle,
@@ -752,6 +756,10 @@ fun setColors(input: ParamsCustomization.CustomizationEditor, opts: JSONObject)
752756 " rfidProcessingScreenProgressBarBackground" -> input.setColor(CustomizationColor .RFID_PROCESSING_SCREEN_PROGRESS_BAR_BACKGROUND , value)
753757 " rfidProcessingScreenResultLabelText" -> input.setColor(CustomizationColor .RFID_PROCESSING_SCREEN_RESULT_LABEL_TEXT , value)
754758 " rfidProcessingScreenLoadingBar" -> input.setColor(CustomizationColor .RFID_PROCESSING_SCREEN_LOADING_BAR , value)
759+ " rfidEnableNfcTitleText" -> input.setColor(CustomizationColor .RFID_ENABLE_NFC_TITLE_TEXT , value)
760+ " rfidEnableNfcDescriptionText" -> input.setColor(CustomizationColor .RFID_ENABLE_NFC_DESCRIPTION_TEXT , value)
761+ " rfidEnableNfcButtonText" -> input.setColor(CustomizationColor .RFID_ENABLE_NFC_BUTTON_TEXT , value)
762+ " rfidEnableNfcButtonBackground" -> input.setColor(CustomizationColor .RFID_ENABLE_NFC_BUTTON_BACKGROUND , value)
755763 }
756764}
757765
@@ -764,30 +772,42 @@ fun getColors(input: Map<CustomizationColor, Long>) = mapOf(
764772 " rfidProcessingScreenProgressBarBackground" to input[CustomizationColor .RFID_PROCESSING_SCREEN_PROGRESS_BAR_BACKGROUND ],
765773 " rfidProcessingScreenResultLabelText" to input[CustomizationColor .RFID_PROCESSING_SCREEN_RESULT_LABEL_TEXT ],
766774 " rfidProcessingScreenLoadingBar" to input[CustomizationColor .RFID_PROCESSING_SCREEN_LOADING_BAR ],
775+ " rfidEnableNfcTitleText" to input[CustomizationColor .RFID_ENABLE_NFC_TITLE_TEXT ],
776+ " rfidEnableNfcDescriptionText" to input[CustomizationColor .RFID_ENABLE_NFC_DESCRIPTION_TEXT ],
777+ " rfidEnableNfcButtonText" to input[CustomizationColor .RFID_ENABLE_NFC_BUTTON_TEXT ],
778+ " rfidEnableNfcButtonBackground" to input[CustomizationColor .RFID_ENABLE_NFC_BUTTON_BACKGROUND ],
767779).toJson()
768780
769781fun setFonts (input : ParamsCustomization .CustomizationEditor , opts : JSONObject ) = opts.forEach { key, value ->
770782 when (key) {
771783 " rfidProcessingScreenHintLabel" -> CustomizationFont .RFID_PROCESSING_SCREEN_HINT_LABEL .setFont(input, value)
772784 " rfidProcessingScreenProgressLabel" -> CustomizationFont .RFID_PROCESSING_SCREEN_PROGRESS_LABEL .setFont(input, value)
773785 " rfidProcessingScreenResultLabel" -> CustomizationFont .RFID_PROCESSING_SCREEN_RESULT_LABEL .setFont(input, value)
786+ " rfidEnableNfcTitleText" -> CustomizationFont .RFID_ENABLE_NFC_TITLE_TEXT .setFont(input, value)
787+ " rfidEnableNfcDescriptionText" -> CustomizationFont .RFID_ENABLE_NFC_DESCRIPTION_TEXT .setFont(input, value)
788+ " rfidEnableNfcButtonText" -> CustomizationFont .RFID_ENABLE_NFC_BUTTON_TEXT .setFont(input, value)
774789 }
775790}
776791
777792fun getFonts (fonts : Map <CustomizationFont , Typeface >, sizes : Map <CustomizationFont , Int >) = mapOf (
778793 " rfidProcessingScreenHintLabel" to CustomizationFont .RFID_PROCESSING_SCREEN_HINT_LABEL .getFont(fonts, sizes),
779794 " rfidProcessingScreenProgressLabel" to CustomizationFont .RFID_PROCESSING_SCREEN_PROGRESS_LABEL .getFont(fonts, sizes),
780795 " rfidProcessingScreenResultLabel" to CustomizationFont .RFID_PROCESSING_SCREEN_RESULT_LABEL .getFont(fonts, sizes),
796+ " rfidEnableNfcTitleText" to CustomizationFont .RFID_ENABLE_NFC_TITLE_TEXT .getFont(fonts, sizes),
797+ " rfidEnableNfcDescriptionText" to CustomizationFont .RFID_ENABLE_NFC_DESCRIPTION_TEXT .getFont(fonts, sizes),
798+ " rfidEnableNfcButtonText" to CustomizationFont .RFID_ENABLE_NFC_BUTTON_TEXT .getFont(fonts, sizes),
781799).toJson()
782800
783801fun setImages (input : ParamsCustomization .CustomizationEditor , opts : JSONObject ) = opts.forEach { key, v ->
784802 when (key) {
785803 " rfidProcessingScreenFailureImage" -> input.setImage(CustomizationImage .RFID_PROCESSING_SCREEN_FAILURE_IMAGE , v.toDrawable())
804+ " rfidEnableNfcImage" -> input.setImage(CustomizationImage .RFID_ENABLE_NFC_IMAGE , v.toDrawable())
786805 }
787806}
788807
789808fun getImages (input : Map <CustomizationImage , Drawable >) = mapOf (
790809 " rfidProcessingScreenFailureImage" to (input[CustomizationImage .RFID_PROCESSING_SCREEN_FAILURE_IMAGE ] ? : ContextCompat .getDrawable(context, com.regula.documentreader.api.R .drawable.reg_ic_error)).toBase64(),
810+ " rfidEnableNfcImage" to (input[CustomizationImage .RFID_ENABLE_NFC_IMAGE ] ? : ContextCompat .getDrawable(context, com.regula.documentreader.api.R .drawable.reg_enable_nfc)).toBase64(),
791811).toJson()
792812
793813fun CustomizationFont.getFont (fonts : Map <CustomizationFont , Typeface >, sizes : Map <CustomizationFont , Int >) =
0 commit comments