<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreNFC",
  "identifier" : "/documentation/CoreNFC/NFCPaymentTagReaderSession/init(delegate:queue:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core NFC",
      "CoreNFC"
    ],
    "preciseIdentifier" : "s:So26NFCPaymentTagReaderSessionC7CoreNFCE8delegate5queueAbC06NFCTagcD8Delegate_p_So012OS_dispatch_H0CSgtcfc"
  },
  "title" : "init(delegate:queue:)"
}
-->

# init(delegate:queue:)

Creates a new session instance for processing NFC payment tags.

```
@nonobjc convenience init(delegate: any NFCTagReaderSessionDelegate, queue: DispatchQueue? = nil)
```

## Parameters

`delegate`

A delegate that receives callbacks about discovered tags and session life cycle events. The session holds a weak reference to the delegate.

`queue`

A dispatch queue on which to perform delegate callbacks. The session object retains the provided dispatch queue. If this value is `nil`, the framework creates an internal serial dispatch queue for the session.

## Discussion

Creating a session requires that your app have the <doc://com.apple.documentation/documentation/BundleResources/Entitlements/com.apple.developer.nfc.readersession.formats> entitlement; if it’s missing, your delegate receives the callback [`tagReaderSession(_:didInvalidateWithError:)`](/documentation/CoreNFC/NFCTagReaderSessionDelegate-2joku/tagReaderSession(_:didInvalidateWithError:)) with the error [`NFCReaderError.Code.readerErrorSecurityViolation`](/documentation/CoreNFC/NFCReaderError-swift.struct/Code/readerErrorSecurityViolation). Additionally, the app’s information property list must contain a non-empty usage description string. If it’s absent, the delegate doesn’t receive tag-discovery callbacks.

When the session discovers an ISO 7816-compatible tag, the session performs a `SELECT` command for each application identifier provided in <doc://com.apple.documentation/documentation/BundleResources/Entitlements/com.apple.developer.nfc.readersession.iso7816.select-identifiers>. The `SELECT` command searches for the identifiers in the order in which they appear in the array. The session calls the [`tagReaderSession(_:didDetect:)`](/documentation/CoreNFC/NFCTagReaderSessionDelegate-2joku/tagReaderSession(_:didDetect:)) delegate method after the first successful `SELECT` command. The [`initialSelectedAID`](/documentation/CoreNFC/NFCISO7816Tag/initialSelectedAID) property of the found tag contains the selected identifier.

---

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)