<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreNFC",
  "identifier" : "/documentation/CoreNFC/NFCISO7816APDU",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Core NFC"
    ],
    "preciseIdentifier" : "c:objc(cs)NFCISO7816APDU"
  },
  "title" : "NFCISO7816APDU"
}
-->

# NFCISO7816APDU

An object representing an ISO 7816 application protocol data unit (APDU).

```
class NFCISO7816APDU
```

## Topics

### Creating an APDU Object

[`-  initWithInstructionClass:instructionCode:p1Parameter:p2Parameter:data:expectedResponseLength:`](/documentation/CoreNFC/NFCISO7816APDU/init(instructionClass:instructionCode:p1Parameter:p2Parameter:data:expectedResponseLength:))

Creates an APDU object with the instruction class and code, parameter bytes, and expected response length.

[`-  initWithData:`](/documentation/CoreNFC/NFCISO7816APDU/init(data:))

Creates an APDU object with the data buffer containing the full APDU.

### Getting the Instruction Bytes

[`instructionClass`](/documentation/CoreNFC/NFCISO7816APDU/instructionClass)

The value of the instruction class (CLA) byte.

[`instructionCode`](/documentation/CoreNFC/NFCISO7816APDU/instructionCode)

The value of the instruction code (INS) byte.

### Get the Parameter Bytes

[`p1Parameter`](/documentation/CoreNFC/NFCISO7816APDU/p1Parameter)

The value of the P1 parameter byte.

[`p2Parameter`](/documentation/CoreNFC/NFCISO7816APDU/p2Parameter)

The value of the P2 parameter byte.

### Getting the APDU Data

[`data`](/documentation/CoreNFC/NFCISO7816APDU/data)

The data to transmit.

### Getting the Expected Response Length

[`expectedResponseLength`](/documentation/CoreNFC/NFCISO7816APDU/expectedResponseLength)

The expected response data length (Le) in bytes.

## Relationships

### Conforms To

[`NSCopying`](/documentation/Foundation/NSCopying)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)