public ReaderDisplayListener
The ReaderDisplayListener
should be implemented to handle events from the reader that
occur while accepting input.
Use of this SDK is subject to the Stripe Terminal Terms: https://stripe.com/terminal/legal
Modifier and Type | Method and Description |
---|---|
void |
onRequestReaderDisplayMessage(ReaderDisplayMessage message)
This method is called to request that a message be displayed in your app.
For example, if the message is
SWIPE_CARD , your app should instruct the
user to present the card again by swiping it. |
void |
onRequestReaderInput(ReaderInputOptions options)
This method is called when the reader begins waiting for input. Your app
should prompt the customer to present a source using one of the given input
options. If the reader emits a message, the .onRequestReaderDisplayMessage method
will be called.
|
void onRequestReaderInput(@NotNull ReaderInputOptions options)
This method is called when the reader begins waiting for input. Your app should prompt the customer to present a source using one of the given input options. If the reader emits a message, the .onRequestReaderDisplayMessage method will be called.
Call ReaderInputOptions.toString
to get a user facing string for the input
options.
options
- The input options the reader is prepared to accept.ReaderInputOptions.toString
void onRequestReaderDisplayMessage(@NotNull ReaderDisplayMessage message)
This method is called to request that a message be displayed in your app.
For example, if the message is SWIPE_CARD
, your app should instruct the
user to present the card again by swiping it.
Call ReaderDisplayMessage.toString
to get a user facing string for the message.
message
- The reader message to display to the user.ReaderDisplayMessage.toString