Interface CardRemovalWaiterBlockingSpi


public interface CardRemovalWaiterBlockingSpi
This SPI is specifically designed for plugins that handle card removal synchronously. The plugin waits autonomously and indefinitely for the removal 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.2.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Interrupts the waiting of the removal of the card
    void
    Waits indefinitely for a card to be removed.
  • Method Details

    • waitForCardRemoval

      void waitForCardRemoval() throws ReaderIOException, TaskCanceledException
      Waits indefinitely for a card to be removed.

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

      Throws:
      ReaderIOException - If the communication with the reader
      TaskCanceledException - If the task has been canceled and is no longer active
      Since:
      2.2.0
    • stopWaitForCardRemoval

      void stopWaitForCardRemoval()
      Interrupts the waiting of the removal of the card
      Since:
      2.2.0