public static abstract class

Connections.EndpointDiscoveryListener

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

This class is deprecated.
Use EndpointDiscoveryCallback instead.

Class Overview

Listener invoked during endpoint discovery.

Summary

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

Public Constructors

public Connections.EndpointDiscoveryListener ()

Public Methods

public void onEndpointFound (String endpointId, String serviceId, String name)

Called when a remote endpoint is discovered.

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