Interface NFCTagReaderSessionDelegate


  • public interface NFCTagReaderSessionDelegate
    [@protocol] NFCTagReaderSessionDelegate Tag reader session delegate API-Since: 13.0
    • Method Detail

      • tagReaderSessionDidDetectTags

        default void tagReaderSessionDidDetectTags​(@NotNull
                                                   @NotNull NFCTagReaderSession session,
                                                   @NotNull
                                                   @NotNull NSArray<?> tags)
        tagReaderSession:didDetectTags: Gets called when the reader detects NFC tag(s) in the polling sequence. API-Since: 13.0
        Parameters:
        session - The session object used for tag detection.
        tags - Array of @link NFCTag @link/ objects.
      • tagReaderSessionDidInvalidateWithError

        void tagReaderSessionDidInvalidateWithError​(@NotNull
                                                    @NotNull NFCTagReaderSession session,
                                                    @NotNull
                                                    @NotNull NSError error)
        tagReaderSession:didInvalidateWithError: Gets called when a session becomes invalid. At this point the client is expected to discard the returned session object. API-Since: 13.0
        Parameters:
        session - The session object that is invalidated.
        error - The error indicates the invalidation reason.
      • tagReaderSessionDidBecomeActive

        default void tagReaderSessionDidBecomeActive​(@NotNull
                                                     @NotNull 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. API-Since: 13.0
        Parameters:
        session - The session object in the active state.