Package org.eclipse.keypop.reader
Interface CardReaderEvent
-
public interface CardReaderEvent
Card event data container indicating a change of state.Contains the event origin (reader name), the event type and possibly the card selection response (when available).
- Since:
- 1.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
CardReaderEvent.Type
Possible card events.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getReaderName()
Returns the name of the reader that generated the event.ScheduledCardSelectionsResponse
getScheduledCardSelectionsResponse()
Returns the card selection responses when it is available and null in all other cases.CardReaderEvent.Type
getType()
Returns the card reader event type.
-
-
-
Method Detail
-
getReaderName
java.lang.String getReaderName()
Returns the name of the reader that generated the event.- Returns:
- A non-empty string.
- Since:
- 1.0.0
-
getType
CardReaderEvent.Type getType()
Returns the card reader event type.- Returns:
- A non-null value.
- Since:
- 1.0.0
-
getScheduledCardSelectionsResponse
ScheduledCardSelectionsResponse getScheduledCardSelectionsResponse()
Returns the card selection responses when it is available and null in all other cases. It may be available when the event type isCardReaderEvent.Type.CARD_INSERTED
and always present when the event type isCardReaderEvent.Type.CARD_MATCHED
.It is necessary to use the method
CardSelectionManager.parseScheduledCardSelectionsResponse(ScheduledCardSelectionsResponse)
to analyze the result.- Returns:
- Null if the event is not carrying a
ScheduledCardSelectionsResponse
. - Since:
- 1.0.0
-
-