-
- All Implemented Interfaces:
-
org.forgerock.android.auth.Interceptor
public interface DeviceCollector implements Interceptor<T>
Collector to collect device information
-
-
Method Summary
Modifier and Type Method Description abstract StringgetName()Retrieve the name of the Collector abstract voidcollect(Context context, FRListener<JSONObject> listener)Collect the device data. voidcollect(Context context, FRListener<JSONObject> listener, JSONObject container, List<DeviceCollector> collectors)Collect the device data with the provided DeviceCollector voidintercept(Interceptor.Chain chain, JSONObject data)Intercept the chain -
-
Method Detail
-
collect
abstract void collect(Context context, FRListener<JSONObject> listener)
Collect the device data.
- Parameters:
context- The Application Contextlistener- Listener to listen for collected data.
-
collect
void collect(Context context, FRListener<JSONObject> listener, JSONObject container, List<DeviceCollector> collectors)
Collect the device data with the provided DeviceCollector
- Parameters:
context- The application Contextlistener- Listener to listen for collected data.container- The container for the collected data.collectors- List of DeviceCollector
-
intercept
void intercept(Interceptor.Chain chain, JSONObject data)
Intercept the chain
- Parameters:
chain- The interceptor chaindata- The data received from previous chain
-
-
-
-