ReaderReconnectionListener

The ReaderReconnectionListener is implemented in order to receive updates from auto reconnection.

If opting in to auto reconnections, onReaderReconnectStarted will be triggered instead of TerminalListener.onUnexpectedReaderDisconnect.

Use of this SDK is subject to the Stripe Terminal Terms: https://stripe.com/terminal/legal

Functions

Link copied to clipboard
abstract fun onReaderReconnectFailed(reader: Reader)

Invoked when a connection could not be re-established with the given reader after a reasonable number of attempts.

Link copied to clipboard
open fun onReaderReconnectStarted(reader: Reader, cancelReconnect: Cancelable)
open fun onReaderReconnectStarted(reader: Reader, cancelReconnect: Cancelable, reason: DisconnectReason)

Invoked when the given reader has unexpectedly disconnected and an auto reconnection process has been initiated.

Link copied to clipboard
abstract fun onReaderReconnectSucceeded(reader: Reader)

Invoked when a connection has successfully been re-established with the given reader.