Migration Guide: From 5.x To 6.x
From v6.8 To v6.9
- The
readRFIDandstartRFIDReadermethods in theDocumentReaderclass have changed their completion fromIDocumentReaderCompletiontoIRfidCompletion.
Without completion:
DocumentReader.Instance().startRFIDReader(this, new IRfidReaderCompletion() {
@Override
public void onCompleted(int action, @Nullable DocumentReaderResults results, @Nullable DocumentReaderException error) {
...
}
});
DocumentReader.Instance().startRFIDReader(this@MainActivity, object : IRfidReaderCompletion() {
override fun onCompleted(
rfidAction: Int,
documentReaderResults: DocumentReaderResults?,
e: DocumentReaderException?
) {
...
}
})
With completion:
DocumentReader.Instance().startRFIDReader(MainActivity.this, new IRfidReaderCompletion() {
@Override
public void onCompleted(int action, @Nullable DocumentReaderResults results, @Nullable DocumentReaderException error) {
...
}
@Override
public void onChipDetected() {
...
}
@Override
public void onRetryReadChip(@NonNull DocReaderRfidException exception) {
...
}
@Override
public void onProgress(@NonNull DocumentReaderNotification notification) {
...
}
});
DocumentReader.Instance().startRFIDReader(this@MainActivity, object : IRfidReaderCompletion() {
override fun onCompleted(
rfidAction: Int,
documentReaderResults: DocumentReaderResults?,
e: DocumentReaderException?
) {
...
}
override fun onChipDetected() {
...
}
override fun onProgress(notification: DocumentReaderNotification) {
...
}
override fun onRetryReadChip(exception: DocReaderRfidException) {
...
}
})
-
IRfidPKDCertificateCompletion,IRfidReaderRequest,IRfidTASignatureCompletion, andITccParamsCompletionhave changed their package name fromcom.regula.documentreader.api.completionstocom.regula.documentreader.api.completions.rfid. -
The
NOTIFICATIONvalue in theDocReaderActionenum has been deprecated. -
The
documentReaderNotificationfield in theDocumentReaderResultsclass has been deprecated. Use theonProgressmethod inIRfidReaderCompletioninstead. -
Use
ScannerConfigin theshowScannermethod:
ScannerConfig scannerConfig = new ScannerConfig.Builder(Scenario.SCENARIO_MRZ).build();
DocumentReader.Instance().showScanner(MainActivity.this, scannerConfig, completion);
val scannerConfig = ScannerConfig.Builder(Scenario.SCENARIO_MRZ).build()
DocumentReader.Instance().showScanner(this@MainActivity, scannerConfig, completion)
-
The
setOnlineProcessingConfigurationmethod has been deprecated in theFunctionalityclass. UseOnlineProcessingConfiginstead. -
The
recognizeImageandrecognizeImagesmethods have been deprecated. Use therecognizemethod withRecognizeConfiginstead.
RecognizeConfig recognizeConfig = RecognizeConfig.Builder(Scenario.SCENARIO_MRZ).setBitmap(bitmap).build();
DocumentReader.Instance().recognize(recognizeConfig, completion);
val recognizeConfig = RecognizeConfig.Builder(Scenario.SCENARIO_MRZ).setBitmap(bitmap).build()
DocumentReader.Instance().recognize(recognizeConfig, completion)
-
The
getDefaultReadingBufferSizemethod in theRfidScenarioclass now returns0instead of231. -
Values for the error codes in the
DocumentReaderExceptionclass have been changed. -
The following values in the
eRPRM_Authenticityenum have been renamed:- from
RPRM_AUTHENTICITY_STATUS_ONLYtoSTATUS_ONLY - from
RPRM_AUTHENTICITY_OVItoOVI - from
RPRM_AUTHENTICITY_LIVENESStoLIVENESS - from
RPRM_AUTHENTICITY_OCRtoOCR
- from
From v6.7 To v6.8
-
Changed the constant value for
MRZ_QUALITY_WRONG_MRZ_DPItoMRZ_QUALITY_WRONG_SYMBOL_POSITION. Updated the string associated with it toMRZ_QUALITY_WRONG_SYMBOL_POSITION. -
Added new constants to the
eCheckDiagnoseenumeration:
MRZ_QUALITY_WRONG_SYMBOL_POSITION = 200
MRZ_QUALITY_WRONG_MRZ_WIDTH = 202
MRZ_QUALITY_WRONG_MRZ_HEIGHT = 203
MRZ_QUALITY_WRONG_LINE_POSITION = 204
OCR_QUALITY_TEXT_POSITION = 220
OCR_QUALITY_INVALID_FONT = 221
OCR_QUALITY_INVALID_BACKGROUND = 222
LAS_INK_INVALID_LINES_FREQUENCY = 230
- Changed the value for
LAST_DIAGNOSE_VALUEfrom 210 to 250.
From v6.5 To v6.6
- Deprecated the
validityproperty in theDocumentReaderValueclass, useDocumentReaderTextField#validityListinstead. - Deprecated the
comparisonproperty in theDocumentReaderValueclass, useDocumentReaderTextField#comparisonListinstead. - Renamed the
Device7310Configclass toBleDeviceConfig. - Added the
@NonNull Contextparameter to the Document Reader'scancelDBUpdatemethod.
From v6.3 To v6.4
- Added new action to the
DocReaderActionenum -TIMEOUT. It means that if the processing is completed by timeout, this action will be called instead ofCOMPLETE. - Changed value of the field
dtRegistrationCertificatein thediDocTypeenum from 31 to 206.
From v6.2 To v6.3
- Replaced the original support library APIs to
AndroidX.
From v6.1 To v6.2
- Removed
eRFID_NotificationAndErrorCodesenum. UseeRFID_NotificationCodesoreRFID_ErrorCodesinstead.
From v5.8 To v6.1
-
Renamed
DocumentReaderScenarioFulltoCoreDetailedScenario. -
Deprecated the
getOverallResult()method inDocumentReaderResults. Use thestatusfield instead, see more details inDocumentReaderResultsStatus. -
Deprecated the
RFIDSessionDataStatusclass and thesessionDataStatusfield in theRFIDSessionDataclass. -
The minimum API level supported — 21.