Protocols
The following protocols are available globally.
-
Protocol used to receive smart card reader events.
Note
Due to iOS limitation, NFC reader events are not reported as other reader types:SCMEnvironment.initTagReaderSession(message:completionHandler:)
must be called before detecting NFC tags.- Once a tag reader session is started, only the detection of a card is possible through
ReaderEvents.onReaderStateChanged(reader:)
, not its removal.
See also
SeeAlsoSCMEnvironment.addReaderListener(listener:)
andSCMEnvironment.removeReaderEventListener(listener:)
.Declaration
Swift
public protocol ReaderEvents : AnyObject