LocalMobileConnectionConfiguration
class LocalMobileConnectionConfiguration @JvmOverloads constructor(locationId: String, val autoReconnectOnUnexpectedDisconnect: Boolean = false, val localMobileReaderReconnectionListener: ReaderReconnectionListener? = null) : ConnectionConfiguration
The LocalMobileConnectionConfiguration object should be used to connect to the phone's or tablet's NFC reader.
Parameters
autoReconnectOnUnexpectedDisconnect
If set to true, Terminal will try to reconnect to your reader.
localMobileReaderReconnectionListener
You will need to set localMobileReaderReconnectionListener 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(locationId: String, autoReconnectOnUnexpectedDisconnect: Boolean = false, localMobileReaderReconnectionListener: ReaderReconnectionListener? = null)
Properties
Link 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
Link copied to clipboard
Link copied to clipboard
The ID of the Location that you want this reader to be registered to.