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