public void addListener(DiscoveryManagerListener listener){
  for (  ConnectableDevice device : compatibleDevices.values()) {
    listener.onDeviceAdded(this,device);
  }
  discoveryListeners.add(listener);
}

public void addListener ( DiscoveryManagerListener listener ) { for ( ConnectableDevice device : compatibleDevices . values ( ) ) { listener . onDeviceAdded ( this , device ) ; } discoveryListeners . add ( listener ) ; }
listener which should receive discovery updates . it is not necessary to set this listener property unless you are implementing your own device picker . connect sdk provides a default devicepicker which acts as a discoverymanagerlistener , and should work for most cases . if you have provided a capabilityfilters array , the listener will only receive update messages for connectabledevices which satisfy at least one of the capabilityfilters . if no capabilityfilters array is provided , the listener will receive update messages for all connectabledevice objects that are discovered .
