Class HardwareCollector

    • Field Summary

    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HardwareCollector

        public HardwareCollector()
    • 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