Interface NFCVASReaderSessionDelegate


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

      • readerSessionDidInvalidateWithError

        void readerSessionDidInvalidateWithError​(@NotNull
                                                 @NotNull NFCVASReaderSession 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: 13.0
        Parameters:
        session - The session object that is invalidated.
        error - The error indicates the invalidation reason.
      • readerSessionDidReceiveVASResponses

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