BluetoothConnectionConfiguration

class BluetoothConnectionConfiguration(locationId: String, val autoReconnectOnUnexpectedDisconnect: Boolean = false, val bluetoothReaderReconnectionListener: ReaderReconnectionListener? = null) : ConnectionConfiguration

The BluetoothConnectionConfiguration object is used to connect to a bluetooth reader (currently DeviceType.CHIPPER_2X, DeviceType.STRIPE_M2 and DeviceType.WISEPAD_3)

Parameters

autoReconnectOnUnexpectedDisconnect

If set to true, Terminal will try to reconnect to your reader.

bluetoothReaderReconnectionListener

You will need to set bluetoothReaderReconnectionListener and being notified by ReaderReconnectionListener.onReaderReconnectStarted when reconnection starts. You will need to listen to ReaderReconnectionListener.onReaderReconnectSucceeded for succeeded reconnection, ReaderReconnectionListener.onReaderReconnectFailed for failed reconnection

Constructors

Link copied to clipboard
constructor(connectLocationId: String)
constructor(locationId: String, autoReconnectOnUnexpectedDisconnect: Boolean = false, bluetoothReaderReconnectionListener: ReaderReconnectionListener? = null)

Properties

Link copied to clipboard

When failIfInUse is true, an error will be returned when attempting to connect to a reader that is already collecting a payment

Link copied to clipboard

The ID of the Location that you want this reader to be registered to.

Functions

Link copied to clipboard
open override fun toString(): String