public class

DeviceManager

extends PayPalRetailObject
java.lang.Object
   ↳ PayPalRetailObject
     ↳ com.paypal.paypalretailsdk.DeviceManager

Class Overview

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.

Summary

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
From class java.lang.Object

Public Methods

public void connectToLastActiveReader (DeviceManager.ConnectionCallback callback)

Try connecting to the last active credit card reader

public PaymentDevice getActiveReader ()

Returns the selected device

public List<PaymentDevice> getDiscoveredDevices ()

Get a list of paired/discovered devices

public Boolean isConnectedToMiura ()

checks if any Miura devive is connected

public void searchAndConnect (DeviceManager.ConnectionCallback callback)

Show a list of connected credit card readers. If there is more than 1 devices. Select one of them to use it for transaction.

public void searchAndConnectWithoutCallback ()

Show a list of connected credit card readers. If there is more than 1 devices. Select one of them to use it for transaction.

public void setActiveReader (PaymentDevice pd)

Sets the active reader

public String toString ()

Returns a string representing the serialized state of the DeviceManager object