java.lang.Object | ||
↳ | PayPalRetailObject | |
↳ | com.paypal.paypalretailsdk.DeviceManager |
DeviceManager is responsible for exposing APIs regarding the devices. Currently, you can use DeviceManager to prompt the List to select the device or set/get the active device.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
interface | DeviceManager.ConnectionCallback | The callback invoked while connecting to the last active card reader |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
connectToLastActiveReader(DeviceManager.ConnectionCallback callback)
Try connecting to the last active credit card reader
| ||||||||||
PaymentDevice |
getActiveReader()
Returns the selected device
| ||||||||||
List<PaymentDevice> |
getDiscoveredDevices()
Get a list of paired/discovered devices
| ||||||||||
Boolean |
isConnectedToMiura()
checks if any Miura devive is connected
| ||||||||||
void |
searchAndConnect(DeviceManager.ConnectionCallback callback)
Show a list of connected credit card readers.
| ||||||||||
void |
searchAndConnectWithoutCallback()
Show a list of connected credit card readers.
| ||||||||||
void |
setActiveReader(PaymentDevice pd)
Sets the active reader
| ||||||||||
String |
toString()
Returns a string representing the serialized state of the DeviceManager object
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Try connecting to the last active credit card reader
checks if any Miura devive is connected
Show a list of connected credit card readers. If there is more than 1 devices. Select one of them to use it for transaction.
Show a list of connected credit card readers. If there is more than 1 devices. Select one of them to use it for transaction.
Returns a string representing the serialized state of the DeviceManager object