getMultipleBlockSecurityStatus method

Future<List<int>> getMultipleBlockSecurityStatus({
  1. required Set<Iso15693RequestFlag> requestFlags,
  2. required int blockNumber,
  3. required int numberOfBlocks,
})

Sends the Get Multiple Block Security Status command to the tag.

This uses NFCISO15693Tag#getMultipleBlockSecurityStatus API on iOS.

Implementation

Future<List<int>> getMultipleBlockSecurityStatus({
  required Set<Iso15693RequestFlag> requestFlags,
  required int blockNumber,
  required int numberOfBlocks,
}) async {
  return channel.invokeMethod('Iso15693#getMultipleBlockSecurityStatus', {
    'handle': _tag.handle,
    'requestFlags':
        requestFlags.map((e) => $Iso15693RequestFlagTable[e]).toList(),
    'blockNumber': blockNumber,
    'numberOfBlocks': numberOfBlocks,
  }).then((value) => List.from(value!));
}