public interface NFCTagReaderSessionDelegate
Tag reader session delegate
| Modifier and Type | Method and Description |
|---|---|
default void |
tagReaderSessionDidBecomeActive(NFCTagReaderSession session)
tagReaderSessionDidBecomeActive:
|
default void |
tagReaderSessionDidDetectTags(NFCTagReaderSession session,
NSArray<?> tags)
tagReaderSession:didDetectTags:
|
void |
tagReaderSessionDidInvalidateWithError(NFCTagReaderSession session,
NSError error)
tagReaderSession:didInvalidateWithError:
|
default void tagReaderSessionDidDetectTags(NFCTagReaderSession session, NSArray<?> tags)
Gets called when the reader detects NFC tag(s) in the polling sequence.
session - The session object used for tag detection.tags - Array of @link NFCTag @link/ objects.void tagReaderSessionDidInvalidateWithError(NFCTagReaderSession session, NSError error)
Gets called when a session becomes invalid. At this point the client is expected to discard the returned session object.
session - The session object that is invalidated.error - The error indicates the invalidation reason.default void tagReaderSessionDidBecomeActive(NFCTagReaderSession session)
Gets called when the NFC reader session has become active. RF is enabled and reader is scanning for tags. The @link readerSession:didDetectTags: @link/ will be called when a tag is detected.
session - The session object in the active state.