customCommand method
Future<Uint8List>
customCommand({
- required Set<
Iso15693RequestFlag> requestFlags, - required int customCommandCode,
- required Uint8List customRequestParameters,
Sends the custom command to the tag.
This uses NFCISO15693Tag#customCommand API on iOS.
Implementation
Future<Uint8List> customCommand({
required Set<Iso15693RequestFlag> requestFlags,
required int customCommandCode,
required Uint8List customRequestParameters,
}) async {
return channel.invokeMethod('Iso15693#customCommand', {
'handle': _tag.handle,
'requestFlags':
requestFlags.map((e) => $Iso15693RequestFlagTable[e]).toList(),
'customCommandCode': customCommandCode,
'customRequestParameters': customRequestParameters,
}).then((value) => value!);
}