DOT Android NFC 8.0.0

This guide describes how to migrate DOT Android NFC version 7.x to version 8.0. Only the most important changes are highlighted in this guide. For more details, see the Android Samples.

Migration Steps

MachineReadableZoneInformation data class

  • Replace MachineReadableZoneInformation properties with MachineReadableZone data class and its properties.

Before

// Example of getting document number in TD1 type
val documentNumber = travelDocument.machineReadableZoneInformation.documentNumber

After

// Example of getting document number in TD1 type
val documentNumber = travelDocument.machineReadableZoneInformation.machineReadableZone.td1!!.documentNumber.value