public class Peripheral extends AccountManager
getEloAccessToken.setUSBPorts(String)getUSBPorts()getMaxUSBPort()startUsbMonitoring()stopUsbMonitoring()getAttachedPeripheralDetails()readSystemProperty(String)ACCESS_TOKEN_INVALID, ACCESS_TOKEN_VALID, API_ACCESS_TOKEN_INVALID, API_ACCESS_TOKEN_VALID, instance, IS_USER_LOGIN_OAUTH, isPolaris, OAUTH_TOKEN_INVALID, OAUTH_TOKEN_VALID, REQUEST_AUTH_LOGIN, REQUEST_AUTH_LOGOUT, SETUP_OAUTH_ERROR, SETUP_OAUTH_SUCCESS, TOKEN_VERIFY_FAIL, TOKEN_VERIFY_SUCCESSGENERIC_ERROR, OAUTH_PATH_TOKEN, OAUTH_PATH_VERIFY| Constructor and Description |
|---|
Peripheral() |
| Modifier and Type | Method and Description |
|---|---|
void |
bindService(android.content.Context context,
ServiceConnectionCallback callback,
java.lang.String accessToken)
This method is used to bind the service to the application.
|
java.util.List<java.lang.String> |
getAllUsbAudioDevices()
This method is used to get all usb audio devices.
|
org.json.JSONObject |
getAttachedPeripheralDetails()
This method is used to get attached usb device information
|
int |
getMaxExtUSBPort(android.content.Context ctx)
TODO: Obtain the max USB ports for specific device from EloSecure
|
int |
getMaxUSBPort()
This method is used to get the maximum number of USB ports on the device.
|
int |
getUsbAudioDevice()
This method is used to get the current usb audio device in use.
|
java.lang.String |
getUSBPorts()
This method is used to get status of the USB ports on the device.
|
java.lang.String |
readSystemProperty(java.lang.String key)
This method is used to read system property
|
boolean |
setUsbAudioDevice(int device)
This method is used to set the usb audio device in use.
|
boolean |
setUSBPorts(java.lang.String json)
This method is used to enable/disable the USB ports on the device.
|
void |
startUsbMonitoring()
This method is used to start USB Monitoring.
|
void |
stopUsbMonitoring()
This method is used to stop USB Monitoring.
|
void |
unbindService(android.content.Context context)
This method is used to unbind the Peripheral Service.
|
configureOAuthHostedUI, destroyOAuth, getBaseUri, getClientId, getEloAccessToken, getEloOAuthToken, getEnvironment, getProperty, isPolaris, isPolarisLocked, logoutOAuth, onOAuthActivityResult, selectEnvironment, setDefaultEnvironment, setProperty, stopOAuth, unregisterAccountManagerListener, verifyEloTokenclone, getEloIntentWithFlag, getMigrate, isDevice7Inch, isDeviceM100public void bindService(android.content.Context context,
ServiceConnectionCallback callback,
java.lang.String accessToken)
context - Context in which the Network APIs were usedcallback - ServiceConnectionCallbackaccessToken - Stringpublic void unbindService(android.content.Context context)
context - The context of the applicationpublic boolean setUSBPorts(java.lang.String json)
json - A json string containing configuration of USB ports to be setpublic java.lang.String getUSBPorts()
public int getMaxUSBPort()
public int getMaxExtUSBPort(android.content.Context ctx)
ctx - public void startUsbMonitoring()
public void stopUsbMonitoring()
public org.json.JSONObject getAttachedPeripheralDetails()
public java.lang.String readSystemProperty(java.lang.String key)
key - System property keypublic java.util.List<java.lang.String> getAllUsbAudioDevices()
setUsbAudioDevice APIpublic int getUsbAudioDevice()
getAllUsbAudioDevices
If no device is in use, -1 is returnedpublic boolean setUsbAudioDevice(int device)
device - Integer representing the usb audio device identifier. This is the "CardNumber" referenced in getAllUsbAudioDevices