Package apple.corenfc.protocol
Interface NFCTagReaderSessionDelegate
-
public interface NFCTagReaderSessionDelegate[@protocol] NFCTagReaderSessionDelegate Tag reader session delegate
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidtagReaderSessionDidBecomeActive(NFCTagReaderSession session)tagReaderSessionDidBecomeActive: Gets called when the NFC reader session has become active.default voidtagReaderSessionDidDetectTags(NFCTagReaderSession session, NSArray<?> tags)tagReaderSession:didDetectTags: Gets called when the reader detects NFC tag(s) in the polling sequence.voidtagReaderSessionDidInvalidateWithError(NFCTagReaderSession session, NSError error)tagReaderSession:didInvalidateWithError: Gets called when a session becomes invalid.
-
-
-
Method Detail
-
tagReaderSessionDidDetectTags
default void tagReaderSessionDidDetectTags(NFCTagReaderSession session, NSArray<?> tags)
tagReaderSession:didDetectTags: Gets called when the reader detects NFC tag(s) in the polling sequence.- Parameters:
session- The session object used for tag detection.tags- Array of @link NFCTag @link/ objects.
-
tagReaderSessionDidInvalidateWithError
void tagReaderSessionDidInvalidateWithError(NFCTagReaderSession session, NSError error)
tagReaderSession:didInvalidateWithError: Gets called when a session becomes invalid. At this point the client is expected to discard the returned session object.- Parameters:
session- The session object that is invalidated.error- The error indicates the invalidation reason.
-
tagReaderSessionDidBecomeActive
default void tagReaderSessionDidBecomeActive(NFCTagReaderSession session)
tagReaderSessionDidBecomeActive: 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.- Parameters:
session- The session object in the active state.
-
-