Interface DeviceCollector

    • Field Detail

      • TAG

        static final java.lang.String TAG
    • 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 Context
        listener - 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 provided DeviceCollector
        Parameters:
        context - The application Context
        listener - Listener to listen for collected data.
        container - The container for the collected data.
        collectors - List of DeviceCollector
      • intercept

        default void intercept​(Interceptor.Chain chain,
                               org.json.JSONObject data)
        Description copied from interface: Interceptor
        Intercept the chain
        Specified by:
        intercept in interface Interceptor<org.json.JSONObject>
        Parameters:
        chain - The interceptor chain
        data - The data received from previous chain