BluetoothConnectionConfiguration

@JvmOverloads
constructor(locationId: String, autoReconnectOnUnexpectedDisconnect: Boolean = true, bluetoothReaderListener: MobileReaderListener, readerPaymentInteractionListener: ReaderPaymentInteractionListener? = null, testReaderUpdate: TestReaderUpdate? = null)

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.

bluetoothReaderListener

The listener which receives events related to the status of the reader, as well as opportunities to update the reader's software.

readerPaymentInteractionListener

The listener which receives payment interactions that require your application to display UI and provide a response before the payment can continue. Defaults to null. A transaction fails if it requires an interaction and no listener is provided.

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).