polling method
Future<FeliCaPollingResponse>
polling({
- required Uint8List systemCode,
- required FeliCaPollingRequestCode requestCode,
- required FeliCaPollingTimeSlot timeSlot,
Sends the Polling command to the tag.
This uses NFCFeliCaTag#polling API on iOS.
Implementation
Future<FeliCaPollingResponse> polling({
required Uint8List systemCode,
required FeliCaPollingRequestCode requestCode,
required FeliCaPollingTimeSlot timeSlot,
}) async {
return channel.invokeMethod('FeliCa#polling', {
'handle': _tag.handle,
'systemCode': systemCode,
'requestCode': $FeliCaPollingRequestCodeTable[requestCode],
'timeSlot': $FeliCaPollingTimeSlotTable[timeSlot],
}).then((value) => $GetFeliCaPollingResponse(Map.from(value)));
}