Interface BonjourServiceListener
public interface BonjourServiceListener
Callback for
BonjourBrowser.browse(...). All methods fire on the EDT.-
Method Summary
Modifier and TypeMethodDescriptionvoidonBrowseError(Throwable error) The browse itself failed (e.g. WiFi disconnected, or the platform does not support Bonjour).voidonServiceLost(BonjourService service) A previously announced service went away.voidonServiceResolved(BonjourService service) A new service appeared, or an existing one was re-resolved with a new host/port.
-
Method Details
-
onServiceResolved
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
A previously announced service went away. -
onBrowseError
The browse itself failed (e.g. WiFi disconnected, or the platform does not support Bonjour).
-