public interface DeviceCollector extends Interceptor<org.json.JSONObject>
Interceptor.Chain| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAG |
| Modifier and Type | Method and Description |
|---|---|
void |
collect(android.content.Context context,
FRListener<org.json.JSONObject> listener)
Collect the device data.
|
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 provided
DeviceCollector |
java.lang.String |
getName()
Retrieve the name of the Collector
|
default void |
intercept(Interceptor.Chain chain,
org.json.JSONObject data)
Intercept the chain
|
java.lang.String getName()
void collect(android.content.Context context,
FRListener<org.json.JSONObject> listener)
context - The Application Contextlistener - Listener to listen for collected data.default void collect(android.content.Context context,
FRListener<org.json.JSONObject> listener,
org.json.JSONObject container,
java.util.List<DeviceCollector> collectors)
DeviceCollectorcontext - The application Contextlistener - Listener to listen for collected data.container - The container for the collected data.collectors - List of DeviceCollectordefault void intercept(Interceptor.Chain chain, org.json.JSONObject data)
Interceptorintercept in interface Interceptor<org.json.JSONObject>chain - The interceptor chaindata - The data received from previous chain