java.lang.Object
com.exxothermic.audioeverywheresdk.helper.logic.JmdnsService

public class JmdnsService extends Object
Class which uses the jmdns library to discover the exxothermic service published through avahi by MyBox
Since:
10/9/13
  • Constructor Details

    • JmdnsService

      public JmdnsService(android.content.Context context, int scanningTimeoutInSeconds, boolean scanOverEthernet, AudioEverywhereResponseHandler responseHandler)
      Default constructor
      Parameters:
      context - The application context
      scanningTimeoutInSeconds - the timeout that will be used for the scanner while trying to find exxtractors
      scanOverEthernet - set if we should use the ethernet port to scan over it
      responseHandler - The response handler that will be called based on the discovery status
  • Method Details

    • isServiceIsCleaning

      public boolean isServiceIsCleaning()
    • getHandler

      public JmdnsService.JmdnsServiceHandler getHandler()
      Getter for the service handler
      Returns:
      The service handler
    • setHandler

      public void setHandler(JmdnsService.JmdnsServiceHandler handler)
      Setter for the service handler
      Parameters:
      handler - The service handler
    • setScanningTimeOut

      public void setScanningTimeOut(int mScanningTimeOut)
      Method that will set the timeout for the scanning. Note: the time is expressed in seconds
      Parameters:
      mScanningTimeOut - the timeout for the scan. The scan process will be considered as failed when this time has passed, in seconds
    • setResponseHandler

      public void setResponseHandler(AudioEverywhereResponseHandler mResponseHandler)
    • startDiscoveryService

      public void startDiscoveryService()
      Method which starts the service
    • stopDiscoveryService

      public void stopDiscoveryService(boolean isForTimeOut, boolean notifyToHandler)
      Method which stops the service
      Parameters:
      isForTimeOut -
    • interruptScanning

      public void interruptScanning(boolean isForTimeOut)