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.

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.

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.

Near Field Communication Tag Reader Session Formats Entitlement

The Near Field Communication data formats an app can read.

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