Interface WaitForCardInsertionBlockingSpi


  • @Deprecated
    public interface WaitForCardInsertionBlockingSpi
    Deprecated.
    Implement CardInsertionWaiterBlockingSpi instead (will be removed in a future version of this API).
    Reader able to wait autonomously and indefinitely for the insertion of a card by implementing a waiting mechanism.

    A typical example of readers conforming to this mode of operation are PC/SC type readers capable of performing RF polling without waiting for a command from the application.

    Since:
    2.0.0
    • Method Detail

      • waitForCardInsertion

        @Deprecated
        void waitForCardInsertion()
                           throws ReaderIOException,
                                  TaskCanceledException
        Deprecated.
        Waits indefinitely for a card to be inserted.

        This wait can be cancelled for an internal (for example timeout) or external reason (for example invocation of stopWaitForCardInsertion()), in this case an exception is raised.

        Throws:
        ReaderIOException - If the communication with the reader has failed.
        TaskCanceledException - If the task has been canceled and is no longer active
        Since:
        2.0.0
      • stopWaitForCardInsertion

        @Deprecated
        void stopWaitForCardInsertion()
        Deprecated.
        Interrupts the waiting of a card insertion.
        Since:
        2.0.0