EndpointDiscoveryCallback

public abstract class EndpointDiscoveryCallback extends Object

Listener invoked during endpoint discovery.

Public Constructor Summary

Public Method Summary

void
onEndpointDistanceChanged(String endpointId, DistanceInfo distanceInfo)
Called when a remote endpoint is found with an updated distance.
abstract void
onEndpointFound(String endpointId, DiscoveredEndpointInfo info)
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, DiscoveredEndpointInfo).

Inherited Method Summary

Public Constructors

public EndpointDiscoveryCallback ()

Public Methods

public void onEndpointDistanceChanged (String endpointId, DistanceInfo distanceInfo)

Called when a remote endpoint is found with an updated distance.

Parameters
endpointId The ID of the remote endpoint that was lost.
distanceInfo The distance.

public abstract void onEndpointFound (String endpointId, DiscoveredEndpointInfo info)

Called when a remote endpoint is discovered.

Parameters
endpointId The ID of the remote endpoint that was discovered.
info Additional information about the 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, DiscoveredEndpointInfo).

Parameters
endpointId The ID of the remote endpoint that was lost.