BluetoothConnectionConfiguration

class BluetoothConnectionConfiguration(locationId: String, autoReconnectOnUnexpectedDisconnect: Boolean, bluetoothReaderReconnectionListener: ReaderReconnectionListener?) : 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
fun BluetoothConnectionConfiguration(connectLocationId: String)
Link copied to clipboard
fun BluetoothConnectionConfiguration(locationId: String, autoReconnectOnUnexpectedDisconnect: Boolean = false, bluetoothReaderReconnectionListener: ReaderReconnectionListener? = null)

Properties

Link copied to clipboard
val autoReconnectOnUnexpectedDisconnect: Boolean = false
Link copied to clipboard
val bluetoothReaderReconnectionListener: ReaderReconnectionListener? = null
Link copied to clipboard
val failIfInUse: Boolean

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
val locationId: String?

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

Link copied to clipboard
Link copied to clipboard
val registerToLocation: String?