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.

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 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.