NFCReaderSessionProtocol - treastrain/TRETJapanNFCReader GitHub Wiki
NFCReaderSessionProtocol
A general interface for interacting with a reader session.
public protocol NFCReaderSessionProtocol: AnyObject
Inheritance
AnyObject
Requirements
sessionQueue
The queue on which the reader session delegate callbacks and completion block handlers are dispatched.
var sessionQueue: DispatchQueue
isReady
A Boolean value that indicates whether the reader session is started and ready to use.
var isReady: Bool
alertMessage
A custom description that helps users understand how they can use NFC reader mode in your app.
var alertMessage: String
begin()
Starts the reader session.
func begin()
invalidate(errorMessage:)
Closes the reader session and displays an error message to the user.
func invalidate(errorMessage: String?)
Parameters
- errorMessage: The error message to display.