Protocol

NFCReaderSessionProtocol

A general interface for interacting with a reader session.

Declaration

protocol NFCReaderSessionProtocol

Topics

Determining Reader Session Readiness

var isReady: Bool

A Boolean value that indicates whether the reader session is started and ready to use.

Required.

Managing a Reader Session

func begin()

Starts the reader session.

Required.

func invalidate()

Closes the reader session, which prevents it from being reused.

Required.

func invalidate(errorMessage: String)

Closes the reader session and displays an error message to the user.

Required.

Beta
var alertMessage: String

A custom description that helps users understand how they can use NFC reader mode in your app.

Required.

Relationships

Inherits From

Conforming Types

See Also

Reader Sessions

class NFCNDEFReaderSession

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

class NFCTagReaderSession

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

Beta
class NFCVASReaderSession

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

Beta
class NFCReaderSession

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

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software