readBlock static method
Future<Uint8List>
readBlock(
- int index, {
- Iso15693RequestFlags? iso15693Flags,
- bool iso15693ExtendedMode = false,
Read one unit of data (specified below) from:
- MIFARE Classic / Ultralight tag: one 16B block / page (Android only)
- ISO 15693 tag: one 4B block (iOS only)
There must be a valid session when invoking.
index
refers to the block / page index.
For MIFARE Classic tags, you must first authenticate against the corresponding sector.
For MIFARE Ultralight tags, four consecutive pages will be read.
Returns data in Uint8List
.
Implementation
static Future<Uint8List> readBlock(int index,
{Iso15693RequestFlags? iso15693Flags,
bool iso15693ExtendedMode = false}) async {
var flags = iso15693Flags ?? Iso15693RequestFlags();
return await _channel.invokeMethod('readBlock', {
'index': index,
'iso15693Flags': flags.encode(),
'iso15693ExtendedMode': iso15693ExtendedMode,
});
}