Migration Guide: From 5.x To 6.x
From v6.8 To v6.9
- The
readRFID
andstartRFIDReader
methods in theDocumentReader
class have changed their completion fromIDocumentReaderCompletion
toIRfidCompletion
.
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
, andITccParamsCompletion
have changed their package name fromcom.regula.documentreader.api.completions
tocom.regula.documentreader.api.completions.rfid
. -
The
NOTIFICATION
value in theDocReaderAction
enum has been deprecated. -
The
documentReaderNotification
field in theDocumentReaderResults
class has been deprecated. Use theonProgress
method inIRfidReaderCompletion
instead. -
Use
ScannerConfig
in theshowScanner
method:
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
setOnlineProcessingConfiguration
method has been deprecated in theFunctionality
class. UseOnlineProcessingConfig
instead. -
The
recognizeImage
andrecognizeImages
methods have been deprecated. Use therecognize
method withRecognizeConfig
instead.
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
getDefaultReadingBufferSize
method in theRfidScenario
class now returns0
instead of231
. -
Values for the error codes in the
DocumentReaderException
class have been changed. -
The following values in the
eRPRM_Authenticity
enum have been renamed:- from
RPRM_AUTHENTICITY_STATUS_ONLY
toSTATUS_ONLY
- from
RPRM_AUTHENTICITY_OVI
toOVI
- from
RPRM_AUTHENTICITY_LIVENESS
toLIVENESS
- from
RPRM_AUTHENTICITY_OCR
toOCR
- from
From v6.7 To v6.8
-
Changed the constant value for
MRZ_QUALITY_WRONG_MRZ_DPI
toMRZ_QUALITY_WRONG_SYMBOL_POSITION
. Updated the string associated with it toMRZ_QUALITY_WRONG_SYMBOL_POSITION
. -
Added new constants to the
eCheckDiagnose
enumeration:
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_VALUE
from 210 to 250.
From v6.5 To v6.6
- Deprecated the
validity
property in theDocumentReaderValue
class, useDocumentReaderTextField#validityList
instead. - Deprecated the
comparison
property in theDocumentReaderValue
class, useDocumentReaderTextField#comparisonList
instead. - Renamed the
Device7310Config
class toBleDeviceConfig
. - Added the
@NonNull Context
parameter to the Document Reader'scancelDBUpdate
method.
From v6.3 To v6.4
- Added new action to the
DocReaderAction
enum -TIMEOUT
. It means that if the processing is completed by timeout, this action will be called instead ofCOMPLETE
. - Changed value of the field
dtRegistrationCertificate
in thediDocType
enum 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_NotificationAndErrorCodes
enum. UseeRFID_NotificationCodes
oreRFID_ErrorCodes
instead.
From v5.8 To v6.1
-
Renamed
DocumentReaderScenarioFull
toCoreDetailedScenario
. -
Deprecated the
getOverallResult()
method inDocumentReaderResults
. Use thestatus
field instead, see more details inDocumentReaderResultsStatus
. -
Deprecated the
RFIDSessionDataStatus
class and thesessionDataStatus
field in theRFIDSessionData
class. -
The minimum API level supported — 21.