DeviceManager

Device Manager can be used to discover bluetooth devices and to connect to a bluetooth or usb device.

Device Manager provides various information about the current connected device as well as ability to disconnect.

It is possible to get a list of all previously connected (paired) devices.

To obtain instance of the Device Manager use AdyenCardReaders.

val cardReadersInstance = AdyenCardReaders.getInstance(applicationContext)
val deviceManager = cardReadersInstance.deviceManager
deviceManager.connectionState.collect {
// Connected device state.
}