Returns the barcode of an NfcBarcode tag.
Tags of {@link #TYPE_KOVIO} return 16 bytes:
The first byte is 0x80 ORd with a manufacturer ID, corresponding
to ISO/IEC 7816-6.
The second byte describes the payload data format. Defined data
format types include the following:
- 0x00: Reserved for manufacturer assignment
- 0x01: 96-bit URL with "http://www." prefix
- 0x02: 96-bit URL with "https://www." prefix
- 0x03: 96-bit URL with "http://" prefix
- 0x04: 96-bit URL with "https://" prefix
- 0x05: 96-bit GS1 EPC
- 0x06-0xFF: reserved
The following 12 bytes are payload:
The last 2 bytes comprise the CRC.
Does not cause any RF activity and does not block.
switch (mType) {
case TYPE_KOVIO:
// For Kovio tags the barcode matches the ID
return mTag.getId();
default:
return null;
}