public class BluetoothCollector extends java.lang.Object implements DeviceCollector
Interceptor.Chain| Constructor and Description |
|---|
BluetoothCollector() |
| Modifier and Type | Method and Description |
|---|---|
org.json.JSONObject |
collect(android.content.Context context) |
void |
collect(android.content.Context context,
FRListener<org.json.JSONObject> listener)
Collect the device data.
|
java.lang.String |
getName()
Retrieve the name of the Collector
|
void |
intercept(Interceptor.Chain chain,
org.json.JSONObject data)
Intercept the chain
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcollectpublic java.lang.String getName()
DeviceCollectorgetName in interface DeviceCollectorpublic void collect(android.content.Context context,
FRListener<org.json.JSONObject> listener)
DeviceCollectorcollect in interface DeviceCollectorcontext - The Application Contextlistener - Listener to listen for collected data.public org.json.JSONObject collect(android.content.Context context)
throws org.json.JSONException
org.json.JSONExceptionpublic void intercept(Interceptor.Chain chain, org.json.JSONObject data)
Interceptorintercept in interface DeviceCollectorintercept in interface Interceptor<org.json.JSONObject>chain - The interceptor chaindata - The data received from previous chain