public interface Reader
| Modifier and Type | Method and Description |
|---|---|
void |
activateProtocol(java.lang.String readerProtocolName,
java.lang.String applicationProtocolName)
Activates the provided card protocol and assigns it a name.
|
void |
deactivateProtocol(java.lang.String readerProtocolName)
Deactivates the provided card protocol.
|
java.lang.String |
getName()
Gets the name of the reader
|
boolean |
isCardPresent()
Checks if is the card present.
|
boolean |
isContactless()
Tells if the current card communication is contactless.
|
java.lang.String getName()
boolean isCardPresent()
KeypleReaderIOException - if the communication with the reader or the card has failedjava.lang.IllegalStateException - is called when reader is no longer registeredvoid activateProtocol(java.lang.String readerProtocolName,
java.lang.String applicationProtocolName)
readerProtocolName - A not empty String.applicationProtocolName - A not empty String.KeypleReaderProtocolNotSupportedException - if the protocol is not supported.java.lang.IllegalStateException - is called when reader is no longer registeredvoid deactivateProtocol(java.lang.String readerProtocolName)
readerProtocolName - A not empty String.KeypleReaderProtocolNotSupportedException - if the protocol is not supported.java.lang.IllegalStateException - is called when reader is no longer registeredboolean isContactless()
java.lang.IllegalStateException - is called when reader is no longer registered