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.
}
Properties
Current connected device hardware information and battery state.
Connection state for the current connected device.
Current connected dock status DockStatus.Attached is only emitted if refreshConnectionStateForAttachedDock is (periodically) called
Functions
Connects to a USB card reader.
Connects to a card reader.
Connects to a USB Accessory (Dock).
Disconnects from the current connected device.
Returns information about updates available for the current connected device.
Returns information about updates available for the current connected device.
List of previously connected devices.
Refreshes the connected and attached status of NYC1 Dock
Starts the discovery of compatible BTLE devices. Returns an error in case the discovery was not possible or scanning failed
Starts an update of the current connected reader's software
Stops the discovery of compatible BTLE devices.