Package org.eclipse.keypop.reader
Interface CardReader
- All Known Subinterfaces:
ConfigurableCardReader
,ObservableCardReader
public interface CardReader
Card reader driving the underlying hardware to manage the card detection.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Returns the name of the reader.boolean
Checks if the card is present.boolean
Checks if the card communication mode is contactless.
-
Method Details
-
getName
String getName()Returns the name of the reader.- Returns:
- A non-empty string containing the name of the reader.
- Since:
- 1.0.0
-
isContactless
boolean isContactless()Checks if the card communication mode is contactless.- Returns:
- true if the communication mode is contactless else false.
- Since:
- 1.0.0
-
isCardPresent
boolean isCardPresent()Checks if the card is present.- Returns:
- true if a card is inserted in the reader else false.
- Throws:
ReaderCommunicationException
- If the communication with the reader has failed.- Since:
- 1.0.0
-