Class BluetoothCollector

  • All Implemented Interfaces:
    DeviceCollector, Interceptor<org.json.JSONObject>

    public class BluetoothCollector
    extends java.lang.Object
    implements DeviceCollector
    Collector to collect device Bluetooth information
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.json.JSONObject collect​(android.content.Context context)  
      void collect​(android.content.Context context, FRListener<org.json.JSONObject> listener)
      Collect the device data.
      java.lang.String getName()
      Retrieve the name of the Collector
      void intercept​(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
    • Constructor Detail

      • BluetoothCollector

        public BluetoothCollector()
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from interface: DeviceCollector
        Retrieve the name of the Collector
        Specified by:
        getName in interface DeviceCollector
        Returns:
        The name of the Collector
      • collect

        public void collect​(android.content.Context context,
                            FRListener<org.json.JSONObject> listener)
        Description copied from interface: DeviceCollector
        Collect the device data.
        Specified by:
        collect in interface DeviceCollector
        Parameters:
        context - The Application Context
        listener - 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: Interceptor
        Intercept the chain
        Specified by:
        intercept in interface DeviceCollector
        Specified by:
        intercept in interface Interceptor<org.json.JSONObject>
        Parameters:
        chain - The interceptor chain
        data - The data received from previous chain