Package apple.corenfc.protocol
Interface NFCReaderSessionDelegate
-
public interface NFCReaderSessionDelegate[@protocol] NFCReaderSession General reader session callbacks API-Since: 11.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidreaderSessionDidBecomeActive(@NotNull NFCReaderSession session)readerSessionDidBecomeActive: Gets called when the NFC reader session has become active.default voidreaderSessionDidDetectTags(@NotNull NFCReaderSession session, @NotNull NSArray<?> tags)readerSession:didDetectTags: Gets called when the reader detects NFC tag(s) in the polling sequence.voidreaderSessionDidInvalidateWithError(@NotNull NFCReaderSession session, @NotNull NSError error)readerSession:didInvalidateWithError: Gets called when a session becomes invalid.
-
-
-
Method Detail
-
readerSessionDidDetectTags
default void readerSessionDidDetectTags(@NotNull @NotNull NFCReaderSession session, @NotNull @NotNull NSArray<?> tags)readerSession:didDetectTags: Gets called when the reader detects NFC tag(s) in the polling sequence. API-Since: 11.0- Parameters:
session- The session object used for tag detection.tags- Array of @link NFCTag @link/ objects.
-
readerSessionDidInvalidateWithError
void readerSessionDidInvalidateWithError(@NotNull @NotNull NFCReaderSession session, @NotNull @NotNull NSError error)readerSession:didInvalidateWithError: Gets called when a session becomes invalid. At this point the client is expected to discard the returned session object. API-Since: 11.0- Parameters:
session- The session object that is invalidated.error- The error indicates the invalidation reason.
-
readerSessionDidBecomeActive
void readerSessionDidBecomeActive(@NotNull @NotNull NFCReaderSession session)readerSessionDidBecomeActive: 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. API-Since: 11.0- Parameters:
session- The session object in the active state.
-
-