FakeNfcIosHostApi class

The iOS half of the platform side, answering without a channel.

It stands in for an iPhone that can read tags, holding a tag that accepts every command and reports nothing of its own: status words are 9000, FeliCa status flags are zero, and the block reads hand back as many empty blocks as were asked for.

That last part is the one worth knowing. A caller that pairs the answer up with the block numbers it requested gets a list of the length it expects, so the loop under test runs the number of times the test intended rather than none.

Constructors

FakeNfcIosHostApi()

Properties

hashCode int
The hash code for this object.
no setterinherited
pigeonVar_binaryMessenger BinaryMessenger?
finalinherited
pigeonVar_messageChannelSuffix String
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

felicaPolling(String handle, Uint8List systemCode, FeliCaPollingRequestCodePigeon requestCode, FeliCaPollingTimeSlotPigeon timeSlot) Future<FeliCaPollingResponsePigeon>
felicaReadWithoutEncryption(String handle, List<Uint8List> serviceCodeList, List<Uint8List> blockList) Future<FeliCaReadWithoutEncryptionResponsePigeon>
felicaRequestResponse(String handle) Future<int>
felicaRequestService(String handle, List<Uint8List> nodeCodeList) Future<List<Uint8List>>
felicaRequestServiceV2(String handle, List<Uint8List> nodeCodeList) Future<FeliCaRequestServiceV2ResponsePigeon>
felicaRequestSpecificationVersion(String handle) Future<FeliCaRequestSpecificationVersionResponsePigeon>
felicaRequestSystemCode(String handle) Future<List<Uint8List>>
felicaResetMode(String handle) Future<FeliCaStatusFlagPigeon>
felicaSendCommand(String handle, Uint8List commandPacket) Future<Uint8List>
felicaWriteWithoutEncryption(String handle, List<Uint8List> serviceCodeList, List<Uint8List> blockList, List<Uint8List> blockData) Future<FeliCaStatusFlagPigeon>
iso15693Authenticate(String handle, List<Iso15693RequestFlagPigeon> flags, int cryptoSuiteIdentifier, Uint8List message) Future<Iso15693ResponsePigeon>
Authenticate (0x35), per ISO/IEC 29167. The in-process reply is returned unprocessed.
iso15693Challenge(String handle, List<Iso15693RequestFlagPigeon> flags, int cryptoSuiteIdentifier, Uint8List message) Future<void>
Challenge (0x39). Answers nothing on success; read the result with iso15693ReadBuffer.
iso15693CustomCommand(String handle, List<Iso15693RequestFlagPigeon> flags, int customCommandCode, Uint8List customRequestParameters) Future<Uint8List>
iso15693CustomCommandWithConfiguration(String handle, int manufacturerCode, int customCommandCode, Uint8List customRequestParameters, Iso15693CommandConfigurationPigeon configuration) Future<Uint8List>
Custom command with a retry configuration. manufacturerCode is the 8-bit IC manufacturer code CoreNFC puts in the frame.
iso15693ExtendedFastReadMultipleBlocks(String handle, List<Iso15693RequestFlagPigeon> flags, int blockNumber, int numberOfBlocks) Future<List<Uint8List>>
Extended fast read multiple blocks (0x3D).
iso15693ExtendedGetMultipleBlockSecurityStatus(String handle, List<Iso15693RequestFlagPigeon> flags, int blockNumber, int numberOfBlocks) Future<List<int>>
Extended get multiple block security status (0x3C).
iso15693ExtendedLockBlock(String handle, List<Iso15693RequestFlagPigeon> flags, int blockNumber) Future<void>
iso15693ExtendedReadMultipleBlocks(String handle, List<Iso15693RequestFlagPigeon> flags, int blockNumber, int numberOfBlocks) Future<List<Uint8List>>
iso15693ExtendedReadSingleBlock(String handle, List<Iso15693RequestFlagPigeon> flags, int blockNumber) Future<Uint8List>
iso15693ExtendedWriteMultipleBlocks(String handle, List<Iso15693RequestFlagPigeon> flags, int blockNumber, int numberOfBlocks, List<Uint8List> dataBlocks) Future<void>
Extended write multiple blocks (0x34).
iso15693ExtendedWriteSingleBlock(String handle, List<Iso15693RequestFlagPigeon> flags, int blockNumber, Uint8List dataBlock) Future<void>
iso15693FastReadMultipleBlocks(String handle, List<Iso15693RequestFlagPigeon> flags, int blockNumber, int numberOfBlocks) Future<List<Uint8List>>
Fast read multiple blocks (0x2D).
iso15693GetMultipleBlockSecurityStatus(String handle, List<Iso15693RequestFlagPigeon> flags, int blockNumber, int numberOfBlocks) Future<List<int>>
iso15693GetSystemInfo(String handle, List<Iso15693RequestFlagPigeon> flags) Future<Iso15693SystemInfoPigeon>
iso15693GetSystemInfoAndUid(String handle, List<Iso15693RequestFlagPigeon> flags) Future<Iso15693SystemInfoPigeon>
getSystemInfoAndUIDWithRequestFlag, the iOS 14 replacement for the selector iso15693GetSystemInfo used until 3.3.0. Returns the UID as well.
iso15693KeyUpdate(String handle, List<Iso15693RequestFlagPigeon> flags, int keyIdentifier, Uint8List message) Future<Iso15693ResponsePigeon>
Key update (0x36). The message content follows the crypto suite used to authenticate.
iso15693LockAfi(String handle, List<Iso15693RequestFlagPigeon> flags) Future<void>
iso15693LockBlock(String handle, List<Iso15693RequestFlagPigeon> flags, int blockNumber) Future<void>
iso15693LockDsfId(String handle, List<Iso15693RequestFlagPigeon> flags) Future<void>
iso15693ReadBuffer(String handle, List<Iso15693RequestFlagPigeon> flags) Future<Iso15693ResponsePigeon>
Read buffer (0x3A).
iso15693ReadMultipleBlocks(String handle, List<Iso15693RequestFlagPigeon> flags, int blockNumber, int numberOfBlocks) Future<List<Uint8List>>
iso15693ReadMultipleBlocksWithConfiguration(String handle, int blockNumber, int numberOfBlocks, int chunkSize, Iso15693CommandConfigurationPigeon configuration) Future<List<Uint8List>>
Read multiple blocks with a retry configuration, so CoreNFC retries inside its own session. chunkSize is how many blocks each request asks for.
iso15693ReadSingleBlock(String handle, List<Iso15693RequestFlagPigeon> flags, int blockNumber) Future<Uint8List>
iso15693ResetToReady(String handle, List<Iso15693RequestFlagPigeon> flags) Future<void>
iso15693Select(String handle, List<Iso15693RequestFlagPigeon> flags) Future<void>
iso15693SendRequest(String handle, int flags, int commandCode, Uint8List? data) Future<Iso15693ResponsePigeon>
The general ISO 15693-3 request: request flag, command code, optional data.
iso15693StayQuiet(String handle) Future<void>
iso15693WriteAfi(String handle, List<Iso15693RequestFlagPigeon> flags, int afi) Future<void>
iso15693WriteDsfId(String handle, List<Iso15693RequestFlagPigeon> flags, int dsfId) Future<void>
iso15693WriteMultipleBlocks(String handle, List<Iso15693RequestFlagPigeon> flags, int blockNumber, int numberOfBlocks, List<Uint8List> dataBlocks) Future<void>
iso15693WriteSingleBlock(String handle, List<Iso15693RequestFlagPigeon> flags, int blockNumber, Uint8List dataBlock) Future<void>
iso7816SendCommand(String handle, int instructionClass, int instructionCode, int p1Parameter, int p2Parameter, Uint8List data, int expectedResponseLength) Future<Iso7816ResponseApduPigeon>
iso7816SendCommandRaw(String handle, Uint8List data) Future<Iso7816ResponseApduPigeon>
mifareSendCommand(String handle, Uint8List commandPacket) Future<Uint8List>
mifareSendIso7816Command(String handle, int instructionClass, int instructionCode, int p1Parameter, int p2Parameter, Uint8List data, int expectedResponseLength) Future<Iso7816ResponseApduPigeon>
mifareSendIso7816CommandRaw(String handle, Uint8List data) Future<Iso7816ResponseApduPigeon>
ndefQueryStatus(String handle) Future<QueryNdefStatusResponsePigeon>
The live status, as opposed to the copy captured at discovery.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
tagIsAvailable(String handle) Future<bool>
NFCTag.isAvailable for the tag behind handle.
tagSessionReadingAvailable() Future<bool>
tagSessionRestartPolling() Future<void>
Drops the current tag and polls again, without tearing down the reader sheet.
tagSessionSetAlertMessage(String alertMessage) Future<void>
takeInitialNdefMessage() Future<NdefMessagePigeon?>
An NDEF message delivered by iOS background tag reading. Consumed by the first call.
toString() String
A string representation of this object.
inherited
vasSessionBegin(List<VasCommandConfigurationPigeon> configurations, String? alertMessage) Future<void>
vasSessionInvalidate(String? alertMessage, String? errorMessage) Future<void>
vasSessionReadingAvailable() Future<bool>
vasSessionSetAlertMessage(String alertMessage) Future<void>

Operators

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