Interface NFCVASReaderSessionDelegate


  • public interface NFCVASReaderSessionDelegate
    [@protocol] NFCVASReaderSessionDelegate Value Added Service (VAS) reader session callbacks.
    • Method Detail

      • readerSessionDidInvalidateWithError

        void readerSessionDidInvalidateWithError​(NFCVASReaderSession session,
                                                 NSError error)
        readerSession: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.
      • readerSessionDidReceiveVASResponses

        void readerSessionDidReceiveVASResponses​(NFCVASReaderSession session,
                                                 NSArray<? extends NFCVASResponse> responses)
        readerSession:didReceiveVASResponses: Gets called when the reader completes the requested VAS transaction. Polling is automatically restarted once the detected tag is removed from the reader's read range.
        Parameters:
        session - The session object used for tag detection.
        responses - Array of @link NFCVASResponse @link/ objects. The order of the response objects follows the sequence of GET VAS DATA sent by the reader session.
      • readerSessionDidBecomeActive

        default void readerSessionDidBecomeActive​(NFCVASReaderSession session)
        readerSessionDidBecomeActive: Gets called when the NFC reader session has become active. RF is enabled and reader is scanning for VAS tags. The @link readerSession:didReceiveVASResponses: @link/ will be called when a VAS transaction is completed.
        Parameters:
        session - The session object in the active state.