Page Summary
-
The Connections.EndpointDiscoveryListener class is deprecated and should be replaced with EndpointDiscoveryCallback.
-
This class serves as a listener that is invoked during the process of discovering endpoints.
-
The onEndpointFound method is triggered when a remote endpoint is successfully discovered.
-
The onEndpointLost method is called when a previously found remote endpoint is no longer discoverable.
This class is deprecated.
Use EndpointDiscoveryCallback
instead.
Listener invoked during endpoint discovery.
Public Constructor Summary
Public Method Summary
| void |
onEndpointFound(String endpointId,
String
serviceId, String name)
Called when a remote endpoint is discovered.
|
| abstract void |
onEndpointLost(String endpointId)
Called when a remote endpoint is no longer discoverable; only called for
endpoints that previously had been passed to
onEndpointFound(String, String, String).
|
Inherited Method Summary
Public Constructors
public EndpointDiscoveryListener ()
Public Methods
public void onEndpointFound (String endpointId, String serviceId, String name)
Called when a remote endpoint is discovered.
Parameters
| endpointId | The ID of the remote endpoint that was discovered. |
|---|---|
| serviceId | The ID of the service of the remote endpoint. |
| name | The human readable name of the remote endpoint. |
public abstract void onEndpointLost (String endpointId)
Called when a remote endpoint is no longer discoverable; only called for endpoints
that previously had been passed to
onEndpointFound(String, String, String).
Parameters
| endpointId | The ID of the remote endpoint that was lost. |
|---|