One Logo Pool Ball
CoreNFC · IOS API REFERENCE

NFCISO7816Tag

protocol · iOS 13.0+ · SDK 27.1

protocol NFCISO7816Tag : NFCNDEFTag, __NFCTag

Members (2)

method · iOS 14.0+

sendCommand

Swift declaration
@preconcurrency func sendCommand(apdu: NFCISO7816APDU, resultHandler: @escaping @Sendable (Result<NFCISO7816ResponseAPDU, any Error>) -> Void)

Send a command APDU to the tag and receives a response APDU. Note that a SELECT command with a P1 value of 0x04 (selection by DF name) will be checked against the values listed in the "com.apple.developer.nfc.readersession.iso7816.select-identifiers" in the Info.plist. Selecting an application outside of the permissible list will result in a `NFCReaderErrorSecurityViolation` error. - Parameters: - apdu: The command APDU object. - resultHandler: Completion handler called when the operation is completed. A `NFCErrorDomain` error is returned when there is a communication issue with the tag. `payload` may be nil. Command processing status bytes (SW1-SW2) are always valid.

method · iOS 14.0+

sendCommand

Swift declaration
func sendCommand(apdu: NFCISO7816APDU) async throws -> NFCISO7816ResponseAPDU

Send a command APDU to the tag and receives a response APDU. Note that a SELECT command with a P1 value of 0x04 (selection by DF name) will be checked against the values listed in the "com.apple.developer.nfc.readersession.iso7816.select-identifiers" in the Info.plist. Selecting an application outside of the permissible list will result in a `NFCReaderErrorSecurityViolation` error. - Parameters: - apdu: The command APDU object. - Returns: A NFCISO7816ResponseAPDU object. A `NFCErrorDomain` error is returned when there is a communication issue with the tag. `payload` may be nil.

Skipped declarations

No declarations were skipped in this snapshot.

All CoreNFC types →