public static abstract class

Connections.ConnectionRequestListener

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

This class is deprecated.
Use ConnectionLifecycleCallback instead.

Class Overview

Listener invoked when a remote endpoint requests a connection to a local endpoint.

Summary

Public Constructors
Connections.ConnectionRequestListener()
Public Methods
void onConnectionRequest(String remoteEndpointId, String remoteEndpointName, byte[] handshakeData)
Called when a remote endpoint requests a connection to a local endpoint.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Connections.ConnectionRequestListener ()

Public Methods

public void onConnectionRequest (String remoteEndpointId, String remoteEndpointName, byte[] handshakeData)

Called when a remote endpoint requests a connection to a local endpoint.

Parameters
remoteEndpointId String: The ID of the remote endpoint requesting a connection.
remoteEndpointName String: The human readable name of the remote endpoint.
handshakeData byte: Bytes of a custom message sent with the connection request.