com.google.android.gms.nearby.connection.Connections.ConnectionResponseCallback |
Callback for responses to connection requests.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called when a response is received for a connection request.
|
Called when a response is received for a connection request.
remoteEndpointId | The identifier for the remote endpoint that sent the response. |
---|---|
status | The status of the response. Valid values are
STATUS_OK ,
STATUS_CONNECTION_REJECTED , and
STATUS_NOT_CONNECTED_TO_ENDPOINT . |
payload | Bytes of a custom message provided in the connection response
(on success). This array will not exceed MAX_RELIABLE_MESSAGE_LEN bytes
in length.
|