Skip to content

Migration Guide: From 6.x To 7.x

From v6.9 To v7.1

DocumentReader.startRFIDReader() and DocumentReader.readRFID() methods now accept 3 boolean variables:

  • doRequestPACertificates
  • doRequestTACertificates
  • doRequestTASignature

In most cases these parameters will have the false value.

DocumentReader.startRFIDReader(function (m) { handleRfidCompletion(m) }, function (e) { })
DocumentReader.startRFIDReader(false, false, false, function (m) { handleRfidCompletion(m) }, function (e) { })

DocumentReader.setConfig() is now divided into 3 functions:

DocumentReader.setConfig({
  functionality: {
    videoCaptureMotionControl: true,
    showCaptureButton: true
  },
  customization: {
    showResultStatusMessages: true,
    showStatusMessages: true
  },
  processParams: {
    logs: true
  },
}, function (m) { }, function (e) { })
DocumentReader.setFunctionality({
  videoCaptureMotionControl: true,
  showCaptureButton: true
}, function (m) { }, function (e) { })

DocumentReader.setCustomization({
  showResultStatusMessages: true,
  showStatusMessages: true
}, function (m) { }, function (e) { })

DocumentReader.setProcessParams({
  logs: true
}, function (m) { }, function (e) { })

The callbacks for synchronous functions without return value have been disabled, as they don't return anything.

See the full list of functions with disabled successCallback:

setTag
setFunctionality
setProcessParams
setCustomization
setRfidScenario
resetConfiguration
setLocalizationDictionary

Due to the current architecture design, you still need to pass a callback as a function parameter, but use the empty one function (s) { } as it will never be executed. See the comparative example below.

DocumentReader.setLocalizationDictionary(dictionary, function (result) {
  console.log("Localization dictionary applied!")
}, function (e) { })
DocumentReader.setLocalizationDictionary(dictionary, function (s) { }, function (e) { })
console.log("Localization dictionary applied!")