# Interface BonjourServiceListener

public interface BonjourServiceListener
Callback for `BonjourBrowser.browse(...)`. All methods fire on the EDT.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `onBrowseError(Throwable error)`
  The browse itself failed (e.g. WiFi disconnected, or the platform does not support Bonjour).
  `void`
  `onServiceLost(BonjourService service)`
  A previously announced service went away.
  `void`
  `onServiceResolved(BonjourService service)`
  A new service appeared, or an existing one was re-resolved with a new host/port.

- ## Method Details

  - ### onServiceResolved

    void onServiceResolved(BonjourService service)
    A new service appeared, or an existing one was re-resolved with a new host/port. The platform may also call this when only TXT metadata changes.

  - ### onServiceLost

    void onServiceLost(BonjourService service)
    A previously announced service went away.

  - ### onBrowseError

    void onBrowseError(Throwable error)
    The browse itself failed (e.g. WiFi disconnected, or the platform does not support Bonjour).