CoreNFC reads and writes Near Field Communication (NFC) tags on iOS through reader sessions, exposing connected tag objects and NDEF data to your app. You start an NFCNDEFReaderSession or NFCTagReaderSession, respond to events through an NFCNDEFReaderSessionDelegate, and work with the tags it discovers, including NFCNDEFTag, NFCISO15693Tag, NFCISO7816Tag, NFCFeliCaTag, and NFCMiFareTag. NDEF content is modeled by NFCNDEFMessage and NFCNDEFPayload, and you can issue protocol-specific commands using types such as NFCISO7816APDU and NFCTagCommandConfiguration, handling failures reported through NFCReaderError.
Reader Sessions 7
Sessions that scan for and connect to NFC tags and report discovery events.
- ClNFCReaderSessioniOS 11.0+@class NFCReaderSession
- PrNFCReaderSessionProtocoliOS 11.0+@protocol NFCReaderSession
- ClNFCTagReaderSessioniOS 13.0+@class NFCTagReaderSession
- ClNFCNDEFReaderSessioniOS 11.0+@class NFCNDEFReaderSession
- ClNFCVASReaderSessioniOS 13.0+@class NFCVASReaderSession
- ClNFCPaymentTagReaderSessioniOS 26.0+@class NFCPaymentTagReaderSession
- ClCardSessionISO7816 card emulation session.
Session Delegates 4
Protocols your app implements to respond to reader session lifecycle and tag-discovery events.
- PrNFCTagReaderSessionDelegateTag reader session delegate
- PrNFCNDEFReaderSessionDelegateiOS 11.0+@protocol NFCNDEFReaderSessionDelegate
- PrNFCVASReaderSessionDelegateiOS 13.0+@protocol NFCVASReaderSessionDelegate
- PrNFCWindowSceneDelegateDelegate to notify your `UIWindowScene` that a NFC event has occurred.
Connected Tags 7
Tag types representing the NFC technologies discovered during a reader session.
- EnNFCTagA NFC tag object. The NFCTagReaderSession returns an instance of this type when a tag is detected.
- PrNFCNDEFTagiOS 13.0+@protocol NFCNDEFTag
- PrNFCISO15693TagiOS 11.0+@protocol NFCISO15693Tag
- PrNFCISO7816TagiOS 13.0+@protocol NFCISO7816Tag
- PrNFCFeliCaTagiOS 13.0+@protocol NFCFeliCaTag
- PrNFCMiFareTagiOS 13.0+@protocol NFCMiFareTag
- EnNFCMiFareFamilyiOS 13.0+@enum NFCMiFareFamily
NDEF Messages 4
Types that model the NDEF data read from and written to tags.
- ClNFCNDEFMessageiOS 11.0+@class NFCNDEFMessage
- ClNFCNDEFPayloadiOS 11.0+@class NFCNDEFPayload
- EnNFCNDEFStatusiOS 13.0+@enum NFCNDEFStatus
- EnNFCTypeNameFormatiOS 11.0+@discussion Type Name Format value defined by NFC Data Exchange Format (NDEF) Technical Specification
ISO 7816 Commands 2
Types for issuing application protocol data units to ISO 7816 smart-card tags.
- ClNFCISO7816APDUiOS 13.0+@class NFCISO7816APDU
- StNFCISO7816ResponseAPDUResponse Application Protocol Data Unit
ISO 15693 Commands 6
Configuration and data types for communicating with ISO 15693 vicinity tags.
- ClNFCISO15693CustomCommandConfigurationiOS 11.0+@class NFCISO15693CustomCommandConfiguration
- ClNFCISO15693ReadMultipleBlocksConfigurationiOS 11.0+@class NFCISO15693ReadMultipleBlocksConfiguration
- StNFCISO15693RequestFlagiOS 11.0+Flags that specify request options for commands sent to an ISO 15693 tag.
- StNFCISO15693ResponseFlagiOS 14.0+Flags that describe the options present in a response from an ISO 15693 tag.
- StNFCISO15693MultipleBlockSecurityStatusResponse of Get Multiple Block Security Status command.
- StNFCISO15693SystemInfoResponse of Get System Info command
FeliCa Commands 7
Request codes, response structures, and status values for FeliCa tag communication.
- EnNFCFeliCaPollingRequestCodeiOS 13.0+@discussion Request code parameter for the polling command
- EnNFCFeliCaPollingTimeSlotiOS 13.0+@discussion Time slot parameter for the polling command
- EnNFCFeliCaEncryptionIdiOS 13.0+@discussion Encryption Identifier parameter in response of Request Service V2
- StNFCFeliCaPollingResponseResponse from Polling command.
- StNFCFeliCaRequestSpecificationVersionResponseResponse from Request Service V2 command.
- StNFCFeliCaRequsetServiceV2ResponseResponse from Request Service V2 command.
- StNFCFeliCaStatusFlagResponse status flags
Value-Added Services 2
Types that configure and return results for Apple value-added service passes.
- ClNFCVASCommandConfigurationiOS 13.0+@class NFCVASCommandConfiguration
- ClNFCVASResponseiOS 13.0+@class NFCVASResponse
Command Configuration 1
Base configuration for protocol-specific tag commands.
- ClNFCTagCommandConfigurationiOS 11.0+@interface NFCTagCommandConfiguration
Background Reading 2
Types that support background tag reading and presentment-intent coordination.
- ClNFCPresentmentIntentAssertionA valid assertion object will suppress presentment intent signaling to the system default NFC contactless app due to user button gesture or presence of an external NFC reader RF field.
- EnNFCWindowSceneEventA NFC event send to a `UIScene` or `UIWindowScene`.
Errors 1
Error type that reports failures encountered during reader sessions and tag commands.
- StNFCReaderErroriOS 11.0+An error that reports a failure encountered during a reader session or tag command.
Type Aliases 6
- TyRequestFlag
- TyPollingRequestCode
- TyPollingTimeSlot
- TyEncryptionId
- TyVASMode
- TyVASErrorCode