onUnexpectedReaderDisconnect

abstract fun onUnexpectedReaderDisconnect(reader: Reader)

The Terminal disconnected unexpectedly from the reader.

In your implementation of this method, you may want to notify your user that the reader disconnected. You may also call Terminal.discoverReaders to begin scanning for readers, and attempt to automatically reconnect to the disconnected reader. Be sure to either set a timeout or make it possible to cancel calls to Terminal.discoverReaders

When connected to a Bluetooth or USB reader, you can get more information about the disconnect by implementing the ReaderListener.onDisconnect method.

Parameters

reader

The previously connected reader.