public final class

ConnectionInfo

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

Class Overview

Information about a connection that is being initiated.

Summary

Public Constructors
ConnectionInfo(String endpointName, String authenticationToken, boolean isIncomingConnection)
Public Methods
String getAuthenticationToken()
A small symmetrical token that has been given to both devices.
String getEndpointName()
The name of the remote device we're connecting to.
boolean isIncomingConnection()
True if the connection request was initated from a remote device.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ConnectionInfo (String endpointName, String authenticationToken, boolean isIncomingConnection)

Parameters
endpointName String
authenticationToken String
isIncomingConnection boolean

Public Methods

public String getAuthenticationToken ()

A small symmetrical token that has been given to both devices.

Returns
String

public String getEndpointName ()

The name of the remote device we're connecting to.

Returns
String

public boolean isIncomingConnection ()

True if the connection request was initated from a remote device. False if this device was the one to try and initiate the connection.

Returns
boolean