DiscoveryListener

interface DiscoveryListener

The DiscoveryListener is notified whenever the set of 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

Functions

onUpdateDiscoveredReaders
Link copied to clipboard
abstract fun onUpdateDiscoveredReaders(readers: List<Reader>)
This method will be called repeatedly until:
  • an error occurs

  • Terminal.discoverReaders is canceled

  • Terminal.connectBluetoothReader is called with a discovered reader

You should not cache the Reader objects in the readers list.