public DiscoveryListener
The DiscoveryListener is notified whenever the set of class Readers available for
connection is updated.
For more information, see the official Stripe docs: Connecting to a Reader
Use of this SDK is subject to the Stripe Terminal Terms: https://stripe.com/terminal/legal
class Reader,
Connecting to a Reader| Modifier and Type | Method and Description |
|---|---|
void |
onUpdateDiscoveredReaders(java.util.List<? extends com.stripe.stripeterminal.model.external.Reader> readers)
This method will be called repeatedly until:
|
void onUpdateDiscoveredReaders(@NotNull
java.util.List<? extends com.stripe.stripeterminal.model.external.Reader> readers)
This method will be called repeatedly until:
an error occurs
Terminal.discoverReaders is canceled
Terminal.connectReader is called with a discovered reader
You should not cache the class Reader objects in the readers list. In other
words, after calling Terminal.connectReader with a discovered reader, you should not
attempt to cache and re-use the class Reader object. The connectivity information
associated with the discovered class Reader object will become stale.
Your app should display an updating list of discovered readers if
your user is connecting to a reader for the first time.
Otherwise, you may automatically select a previously saved reader.
Once a selection has been made, call the Terminal.connectReader method to begin
connecting to the reader.
readers - the class Readers found during discoverReaders.Terminal.discoverReaders,
Terminal.connectReader,
class Reader,
Terminal.connectReader,
class Reader,
class Reader,
Terminal.connectReader