public abstract class

EndpointDiscoveryCallback

extends Object
java.lang.Object
   ↳ com.google.android.gms.nearby.connection.EndpointDiscoveryCallback

Class Overview

Listener invoked during endpoint discovery.

Summary

Public Constructors
EndpointDiscoveryCallback()
Public Methods
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).
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public EndpointDiscoveryCallback ()

Public Methods

public abstract void onEndpointFound (String endpointId, DiscoveredEndpointInfo info)

Called when a remote endpoint is discovered.

Parameters
endpointId String: The ID of the remote endpoint that was discovered.
info DiscoveredEndpointInfo: 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 String: The ID of the remote endpoint that was lost.