public static interface

# Connections.ConnectionRequestListener

com.google.android.gms.nearby.connection.Connections.ConnectionRequestListener

## Class Overview

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

## Summary

Public Methods
abstract void | onConnectionRequest(String remoteEndpointId, String remoteDeviceId, String remoteEndpointName, byte[] payload) Called when a remote endpoint requests a connection to a local endpoint.

## Public Methods

#### public abstract void onConnectionRequest (String remoteEndpointId, String remoteDeviceId, String remoteEndpointName, byte[] payload)

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

##### Parameters

remoteEndpointId | The ID of the remote endpoint requesting a connection.
remoteDeviceId | The ID of the remote device requesting a connection.
remoteEndpointName | The human readable name of the remote endpoint.
payload | Bytes of a custom message sent with the connection request.