regulaforensics / DocumentReader-Android

Android Framework for reading and validation of identification documents
64 stars 26 forks source link

DocumentReader.Instance().showScanner function has changed #51

Closed hasan5151 closed 6 months ago

hasan5151 commented 6 months ago

DocumentReader.Instance().showScanner before there was 2 params:
DocumentReader.Instance().showScanner(requireContext(), completion) now it is with 3 params: and i dont know how to use it

Why did u overwrite this function now i cant use it? You could use @Depreciated.

hasan5151 commented 6 months ago

At least give me dependency with 2 params

syakimchik commented 6 months ago

@hasan5151

It's not a bug. The 'showScanner' method with 2 parameters has already been deprecated in 6.9 version.

Now you need to create object of ScannerConfig class.

https://github.com/regulaforensics/DocumentReader-Android/blob/master/Basic/DocumentReader-sample_kotlin/app/src/main/java/com/regula/documentreader/MainViewModel.kt#L122

val scannerConfig = ScannerConfig.Builder(Scenario.SCENARIO_FULL_PROCESS).build() DocumentReader.Instance().showScanner(context, scannerConfig, completion)

hasan5151 commented 6 months ago

results?.getTextFieldValueByType(eVisualFieldType.FT_BANKCARDNUMBER) return null before it was working

syakimchik commented 6 months ago

Could you please reproduce the issue on our sample and provide more details what you do?