Interface DeviceCollector
-
- All Superinterfaces:
Interceptor<org.json.JSONObject>
- All Known Implementing Classes:
BluetoothCollector,BrowserCollector,CameraCollector,ConnectivityCollector,DisplayCollector,FRDeviceCollector,HardwareCollector,LocationCollector,MetadataCollector,NetworkCollector,PlatformCollector,TelephonyCollector
public interface DeviceCollector extends Interceptor<org.json.JSONObject>
Collector to collect device information
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.forgerock.android.auth.Interceptor
Interceptor.Chain
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTAG
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidcollect(android.content.Context context, FRListener<org.json.JSONObject> listener)Collect the device data.default voidcollect(android.content.Context context, FRListener<org.json.JSONObject> listener, org.json.JSONObject container, java.util.List<DeviceCollector> collectors)Collect the device data with the providedDeviceCollectorjava.lang.StringgetName()Retrieve the name of the Collectordefault voidintercept(Interceptor.Chain chain, org.json.JSONObject data)Intercept the chain
-
-
-
Method Detail
-
getName
java.lang.String getName()
Retrieve the name of the Collector- Returns:
- The name of the Collector
-
collect
void collect(android.content.Context context, FRListener<org.json.JSONObject> listener)Collect the device data.- Parameters:
context- The Application Contextlistener- Listener to listen for collected data.
-
collect
default void collect(android.content.Context context, FRListener<org.json.JSONObject> listener, org.json.JSONObject container, java.util.List<DeviceCollector> collectors)Collect the device data with the providedDeviceCollector- Parameters:
context- The application Contextlistener- Listener to listen for collected data.container- The container for the collected data.collectors- List ofDeviceCollector
-
intercept
default void intercept(Interceptor.Chain chain, org.json.JSONObject data)
Description copied from interface:InterceptorIntercept the chain- Specified by:
interceptin interfaceInterceptor<org.json.JSONObject>- Parameters:
chain- The interceptor chaindata- The data received from previous chain
-
-