public interface ChirpBrowserListener
Modifier and Type | Method and Description |
---|---|
void |
onServiceDiscovered(Service service)
Called when a published service has been discovered.
|
void |
onServiceRemoved(Service service)
Called when a service is no longer being published on the local network.
|
void |
onServiceUpdated(Service service)
Called when a new IP address has been discovered for the service.
|
void onServiceDiscovered(@NonNull Service service)
onServiceUpdated
will include the second IP address.service
- the discovered servicevoid onServiceUpdated(@NonNull Service service)
onServiceDiscovered
in the case of services on hosts that have
IPv4 and IPv6 addresses. service
will have the newly discovered IP address.
Less frequently, this will also get called when the IP address of the host publishing the
service changes.service
- the updated Servicevoid onServiceRemoved(@NonNull Service service)
service
- the service that was removed