NFCTagReaderSession - treastrain/TRETJapanNFCReader GitHub Wiki
A reader session for detecting ISO7816, ISO15693, FeliCa, and MIFARE tags.
open class NFCTagReaderSession: NSObject, NFCReaderSessionProtocol CoreNFC.NFCTagReaderSessionDelegate, NFCReaderSessionProtocol, NSObject
A Boolean value that determines whether the device supports NFC tag reading.
open class var readingAvailable: Bool Before creating a reader session, always check the readingAvailable property to determine whether the user’s device supports scanning for and detecting NFC tags.
The delegate of the reader session.
weak open var delegate: NFCTagReaderSessionDelegate?The queue on which the reader session delegate callbacks and completion block handlers are dispatched.
open var sessionQueue: DispatchQueue = .mainA Boolean value that indicates whether the reader session is started and ready to use.
public var isReady: Bool A custom description that helps users understand how they can use NFC reader mode in your app.
public var alertMessage: String = ""Starts the reader session.
public func begin() Closes the reader session and displays an error message to the user.
public func invalidate(errorMessage: String? = nil) os(iOS) && !targetEnvironment(macCatalyst)-
public func tagReaderSessionDidBecomeActive(_ session: CoreNFC.NFCTagReaderSession)
os(iOS) && !targetEnvironment(macCatalyst)-
public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didInvalidateWithError error: Error)
os(iOS) && !targetEnvironment(macCatalyst)-
public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag])