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:


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.