NFCMiFareTag
An interface for interacting with a MIFARE® tag.
Declaration
protocol NFCMiFareTag : NFCNDEFTag, __NFCTagOverview
The NFCTagReaderSessionDelegate receives an object that conforms to the NFCMiFareTag protocol when the NFCTagReaderSession detects a compatible tag. However, if you include the application identifier D2760000850101—the identifier for the NDEF application on MIFARE® DESFire® tags (NFC Forum T4T tag platform)—in the ISO7816 application identifiers for NFC Tag Reader Session array of your Info.plist file, the reader session sends the delegate an NFCISO7816Tag object when it finds a tag matching the identifier. To receive the MIFARE DESFire tag as an NFCMiFareTag object, don’t include D2760000850101 in the array.
For the delegate to receive the tag object, your app must include the Near Field Communication Tag Reader Session Formats Entitlement.
For the reader session to read and write data to the tag, it must be available to the reader session. Use the isAvailable property to check the tag’s availability.
MIFARE, MIFARE DESFire, MIFARE Ultralight, and MIFARE Plus are registered trademarks of NXP B.V.