FeliCa class

FeliCa, as CoreNFC exposes it. iOS only.

Polling iso18092 makes CoreNFC require the com.apple.developer.nfc.readersession.felica.systemcodes entitlement. Without it the reader sheet never appears and the failure arrives asynchronously.

Properties

currentIDm Uint8List
The card's manufacture identifier, IDm -- its UID for this session.
final
currentSystemCode Uint8List
The system code the card is currently addressing.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
polling({required Uint8List systemCode, required FeliCaPollingRequestCode requestCode, required FeliCaPollingTimeSlot timeSlot}) Future<FeliCaPollingResponse>
Selects a system on the card and reads what requestCode asks for.
readWithoutEncryption({required List<Uint8List> serviceCodeList, required List<Uint8List> blockList}) Future<FeliCaReadWithoutEncryptionResponse>
Reads blocks from services that need no authentication.
requestResponse() Future<int>
Asks the card for its current mode. Chiefly a liveness check.
requestService({required List<Uint8List> nodeCodeList}) Future<List<Uint8List>>
Reads the key version of each node in nodeCodeList.
requestServiceV2({required List<Uint8List> nodeCodeList}) Future<FeliCaRequestServiceV2Response>
As requestService, but also reports which encryption each node uses.
requestSpecificationVersion() Future<FeliCaRequestSpecificationVersionResponse>
Reads which version of the FeliCa specification the card implements.
requestSystemCode() Future<List<Uint8List>>
Lists every system code the card carries, not just the one currently selected.
resetMode() Future<FeliCaStatusFlag>
Returns the card to mode 0, undoing whatever mode a previous command left it in.
sendCommand(Uint8List commandPacket) Future<Uint8List>
Sends a command packet the typed methods do not cover.
toString() String
A string representation of this object.
inherited
writeWithoutEncryption({required List<Uint8List> serviceCodeList, required List<Uint8List> blockList, required List<Uint8List> blockData}) Future<FeliCaStatusFlag>
Writes blocks to services that need no authentication.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

from(NfcTag tag) FeliCa?
Returns an instance for tag, or null when the tag is not a FeliCa card.