Connections.ConnectionRequestListener | Android Developers

Quicknav Quicknav
Links

- Google Play Developer Console
- Android Developers Blog
- About Android

Android Sites

- Android.com
- Android Developers
- Android Open Source Project

Language
close

- - About
  - Wear
  - TV
  - Auto
- - Get Started
  - Devices
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
  - Google Services
  - Samples
- - Google Play
  - Essentials
  - Get Users
  - Engage & Retain
  - Monetize
  - Analyze
  - Tools & Reference
  - Developer Stories

## Results

Loading...
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.