Class BluetoothCollector
- java.lang.Object
-
- org.forgerock.android.auth.collector.BluetoothCollector
-
- All Implemented Interfaces:
DeviceCollector,Interceptor<org.json.JSONObject>
public class BluetoothCollector extends java.lang.Object implements DeviceCollector
Collector to collect device Bluetooth information
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.forgerock.android.auth.Interceptor
Interceptor.Chain
-
-
Constructor Summary
Constructors Constructor Description BluetoothCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.json.JSONObjectcollect(android.content.Context context)voidcollect(android.content.Context context, FRListener<org.json.JSONObject> listener)Collect the device data.java.lang.StringgetName()Retrieve the name of the Collectorvoidintercept(Interceptor.Chain chain, org.json.JSONObject data)Intercept the chain-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.forgerock.android.auth.collector.DeviceCollector
collect
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:DeviceCollectorRetrieve the name of the Collector- Specified by:
getNamein interfaceDeviceCollector- Returns:
- The name of the Collector
-
collect
public void collect(android.content.Context context, FRListener<org.json.JSONObject> listener)Description copied from interface:DeviceCollectorCollect the device data.- Specified by:
collectin interfaceDeviceCollector- Parameters:
context- The Application Contextlistener- Listener to listen for collected data.
-
collect
public org.json.JSONObject collect(android.content.Context context) throws org.json.JSONException- Throws:
org.json.JSONException
-
intercept
public void intercept(Interceptor.Chain chain, org.json.JSONObject data)
Description copied from interface:InterceptorIntercept the chain- Specified by:
interceptin interfaceDeviceCollector- Specified by:
interceptin interfaceInterceptor<org.json.JSONObject>- Parameters:
chain- The interceptor chaindata- The data received from previous chain
-
-