Class

NFCTagReaderSession

A reader session for detecting ISO7816, ISO15693, FeliCa, and MIFARE tags.

Declaration

class NFCTagReaderSession : NFCReaderSession

Overview

Use NFCTagReaderSession to interact with one of the tag types listed in NFCTagType. To use this reader session, you must:

To interact with ISO 7816 tags, add the list of the application identifiers supported in your app to the com.apple.developer.nfc.readersession.iso7816.select-identifiers information property list key. If you include the application identifier D2760000850101—the identifier for the NDEF application on MIFARE DESFire tags (NFC Forum T4T tag platform)—and the reader session finds a tag matching this identifier, it sends the delegate an NFCISO7816Tag tag object. To get the MIFARE DESFire tag as an NFCMiFareTag object, don't include D2760000850101 in the application identifier list.

Only one reader session of any type can be active in the system at a time. The system puts additional sessions in a queue and processes them in first-in, first-out (FIFO) order.

Topics

Creating a Tag Reader Session

struct NFCTagReaderSession.PollingOption

Options that determine the type of tags that a reader session should detect during a polling sequence.

protocol NFCTagReaderSessionDelegate

A protocol that an object implements to receive callbacks sent from an NFC tag reader session.

Connecting to a Tag

func connect(to: NFCTag, completionHandler: (Error?) -> Void)

Connects the reader session to a tag and activates that tag.

var connectedTag: NFCTag?

The tag connected to the reader session.

Restarting the Polling Sequence

func restartPolling()

Restarts the polling sequence so the reader session can discover new tags.

Relationships

Inherits From

Conforms To

See Also

Reader Sessions

class NFCNDEFReaderSession

A reader session for detecting NFC Data Exchange Format (NDEF) tags.

class NFCVASReaderSession

A reader session for processing Value Added Service (VAS) tags.

class NFCReaderSession

The abstract base class that represents a reader session for detecting NFC tags.

protocol NFCReaderSessionProtocol

A general interface for interacting with a reader session.

Near Field Communication Tag Reader Session Formats Entitlement

The Near Field Communication data formats the app is allowed to read.

Key: com.apple.developer.nfc.readersession.formats