Skip to content

Migration Guide: From 6.x To 7.x

From v6.9 To v7.1

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

  • doRequestPACertificates
  • doRequestTACertificates
  • doRequestTASignature

In most cases these parameters will have the false value.

DocumentReader.startRFIDReader().subscribe((m: string) => handleRfidCompletion(m))
DocumentReader.startRFIDReader(false, false, false).subscribe((m: string) => handleRfidCompletion(m))

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

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

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

DocumentReader.setProcessParams({
  logs: true
})

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

See the full list of functions with disabled .then():

setTag
setFunctionality
setProcessParams
setCustomization
setRfidScenario
resetConfiguration
setLocalizationDictionary

Since the .then() callback will never be executed for synchronous functions, it can be completely removed. See the comparative example below.

DocumentReader.setLocalizationDictionary(dictionary).then(result => {
  console.log("Localization dictionary applied!")
})
DocumentReader.setLocalizationDictionary(dictionary)
console.log("Localization dictionary applied!")