public interface TransactionDisplayMenuEvent
TransactionDisplayMenuEvent
interface is used as part of the
TransactionDisplayListener
interface to receive menu selection requests from the Yello
EMV transaction library via the method
TransactionDisplayListener.displayMenu(com.yello.api.payment.emv.TransactionDisplayMenuEvent)
.
TransactionDisplayListener
interface.Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getChoices()
Gets the menu items to be displayed
|
java.lang.Integer |
getSelectedIndex()
Get the selection that has been sent to the Yello transaction framework
|
java.lang.String |
getTitle()
Gets title of the menu to be displayed
|
void |
sendCancel()
Sends a cancel answer to the Yello transaction framework
Called by the client-application when one wants to cancel the menu selection. |
void |
sendSelection(int index)
Sends the user selection to the Yello transaction framework
Called by the client-application once a given choice has been selected by the user. |
java.lang.String getTitle()
java.util.List<java.lang.String> getChoices()
void sendCancel() throws java.io.IOException
java.io.IOException
- if there is a communication issue with the Yello transaction frameworkvoid sendSelection(int index) throws java.io.IOException
index
- The selection index (must be the index in getChoices() list).java.io.IOException
- if there is a communication issue with the Yello transaction frameworkjava.lang.Integer getSelectedIndex()
Copyright © 2019 Yello. All rights reserved.