UsbConnectionConfiguration
class UsbConnectionConfiguration @JvmOverloads constructor(locationId: String, val autoReconnectOnUnexpectedDisconnect: Boolean = true, val usbReaderListener: MobileReaderListener, val testReaderUpdate: TestReaderUpdate? = null) : ConnectionConfiguration
The UsbConnectionConfiguration object is used to connect to a USB reader (currently DeviceType.CHIPPER_2X, DeviceType.STRIPE_M2 and DeviceType.WISEPAD_3).
Parameters
locationId
The ID of the Location that you want this reader to be registered to.
autoReconnectOnUnexpectedDisconnect
If set to true, Terminal will try to reconnect to your reader.
usbReaderListener
The listener which receives events related to the status of the reader, as well as opportunities to update the reader's software.
testReaderUpdate
When set, the SDK will perform or announce a reader software update during connection in test mode. Connect will throw TerminalErrorCode.INVALID_REQUIRED_PARAMETER if connecting to a live-mode reader. Defaults to null (no update).
Constructors
Link copied to clipboard
constructor(locationId: String, autoReconnectOnUnexpectedDisconnect: Boolean = true, usbReaderListener: MobileReaderListener, testReaderUpdate: TestReaderUpdate? = null)