Protocol

NFCMiFareTag

An interface for interacting with a MIFARE® tag.

Declaration

@protocol NFCMiFareTag

Overview

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 com.apple.developer.nfc.readersession.iso7816.select-identifiers 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.

Topics

Getting Tag Information

mifareFamily

The MIFARE product family identifier for the tag.

Required.

NFCMiFareFamily

Identifiers for the MIFARE product families.

identifier

The unique hardware identifier of the tag.

Required.

historicalBytes

The historical bytes extracted from an Answer To Select response.

Required.

Sending Commands

- sendMiFareCommand:completionHandler:

Sends a native MIFARE command to the tag.

Required.

- sendMiFareISO7816Command:completionHandler:

Sends an ISO 7816 command APDU to the tag and receives a response APDU.

Required.

Relationships

Inherits From

See Also

Tag Types

Creating NFC Tags from Your iPhone

Save data to tags, and interact with them using native tag protocols.

NFCISO7816Tag

An interface for interacting with an ISO 7816 tag.

NFCISO15693Tag

An interface for interacting with an ISO 15693 tag.

NFCFeliCaTag

An interface for interacting with a FeliCa™ tag.

NFCNDEFTag

An interface for interacting with an NDEF tag.

NFCTag

An interface for interacting with an NFC or RFID tag.

NFCTagCommandConfiguration

A set of parameters you use to define the configuration of an NFC tag command.