-
Notifications
You must be signed in to change notification settings - Fork 34
NFCTagReaderSessionDelegate
treastrain edited this page May 9, 2021
·
2 revisions
Tag reader session delegate.
public protocol NFCTagReaderSessionDelegate: AnyObject
AnyObject
Tells the delegate that the reader session is active.
func tagReaderSessionDidBecomeActive(_ session: NFCTagReaderSession)
The reader session calls this method after the device begins scanning for new tags.
- session: The active reader session. Only one session can be active at a time.
Tells the delegate that the session detected NFC tags.
func tagReaderSession(_ session: NFCTagReaderSession, didDetect tags: [NFCTag])
The polling options specified when creating an NFCTagReaderSession
object determine the types of tags that the session can detect.
- session: The session that detected the tags.
- tags: An array of NFC tags detected by the session.
Tells the delegate the reason for invalidating a reader session.
func tagReaderSession(_ session: NFCTagReaderSession, didInvalidateWithError error: Error)
- session: The session that has become invalid. Your app should discard any references it has to this session.
- error: The error indicating the reason for invalidation of the session.
Generated at 2021-10-28T15:36:42+0000 using swift-doc 1.0.0-rc.1.