Stay organized with collections
Save and categorize content based on your preferences.
GooglePlayGames.BasicApi.Nearby.ConnectionRequest
Represents a request to establish a connection with a remote endpoint.
Summary
Contains information about the remote endpoint and an optional payload.
Constructors and Destructors
|
ConnectionRequest(string remoteEndpointId, string remoteEndpointName, string serviceId, byte[] payload)
|
Properties
|
Payload
|
byte[]
Gets the payload data included with the connection request.
|
RemoteEndpoint
|
Gets the details of the remote endpoint making the connection request.
|
Properties
Payload
byte[] GooglePlayGames::BasicApi::Nearby::ConnectionRequest::Payload
Gets the payload data included with the connection request.
RemoteEndpoint
EndpointDetails GooglePlayGames::BasicApi::Nearby::ConnectionRequest::RemoteEndpoint
Gets the details of the remote endpoint making the connection request.
Public functions
ConnectionRequest
GooglePlayGames::BasicApi::Nearby::ConnectionRequest::ConnectionRequest(
string remoteEndpointId,
string remoteEndpointName,
string serviceId,
byte[] payload
)
Initializes a new instance of the ConnectionRequest struct.
Details |
Parameters |
remoteEndpointId
|
The ID of the remote endpoint requesting the connection.
|
remoteEndpointName
|
The name of the remote endpoint.
|
serviceId
|
The service ID the connection is targeting.
|
payload
|
The payload associated with the connection request.
|
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-07-08 UTC.
[null,null,["Last updated 2025-07-08 UTC."],[],[],null,["# GooglePlayGames.BasicApi.Nearby.ConnectionRequest Struct Reference\n\nGooglePlayGames.BasicApi.Nearby.ConnectionRequest\n=================================================\n\nRepresents a request to establish a connection with a remote endpoint.\n\nSummary\n-------\n\nContains information about the remote endpoint and an optional payload.\n\n| ### Constructors and Destructors ||\n|---|---|\n| [ConnectionRequest](#struct_google_play_games_1_1_basic_api_1_1_nearby_1_1_connection_request_1a28b194c478e66e02b6352c3594a43754)`(string remoteEndpointId, string remoteEndpointName, string serviceId, byte[] payload)` Initializes a new instance of the [ConnectionRequest](/games/services/unity/v2/api/struct/google-play-games/basic-api/nearby/connection-request#struct_google_play_games_1_1_basic_api_1_1_nearby_1_1_connection_request) struct. ||\n\n| ### Properties ||\n|--------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Payload](#struct_google_play_games_1_1_basic_api_1_1_nearby_1_1_connection_request_1a382433e113d7f29d3133e8cb435d906e) | `byte[]` Gets the payload data included with the connection request. |\n| [RemoteEndpoint](#struct_google_play_games_1_1_basic_api_1_1_nearby_1_1_connection_request_1a734e1be5db342df878c6bd153cf4ca12) | [EndpointDetails](/games/services/unity/v2/api/struct/google-play-games/basic-api/nearby/endpoint-details#struct_google_play_games_1_1_basic_api_1_1_nearby_1_1_endpoint_details) Gets the details of the remote endpoint making the connection request. |\n\nProperties\n----------\n\n### Payload\n\n```c#\nbyte[] GooglePlayGames::BasicApi::Nearby::ConnectionRequest::Payload\n``` \nGets the payload data included with the connection request. \n\n### RemoteEndpoint\n\n```c#\nEndpointDetails GooglePlayGames::BasicApi::Nearby::ConnectionRequest::RemoteEndpoint\n``` \nGets the details of the remote endpoint making the connection request.\n\nPublic functions\n----------------\n\n### ConnectionRequest\n\n```c#\n GooglePlayGames::BasicApi::Nearby::ConnectionRequest::ConnectionRequest(\n string remoteEndpointId,\n string remoteEndpointName,\n string serviceId,\n byte[] payload\n)\n``` \nInitializes a new instance of the [ConnectionRequest](/games/services/unity/v2/api/struct/google-play-games/basic-api/nearby/connection-request#struct_google_play_games_1_1_basic_api_1_1_nearby_1_1_connection_request) struct.\n\n\u003cbr /\u003e\n\n| Details ||\n|------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |----------------------|----------------------------------------------------------| | `remoteEndpointId` | The ID of the remote endpoint requesting the connection. | | `remoteEndpointName` | The name of the remote endpoint. | | `serviceId` | The service ID the connection is targeting. | | `payload` | The payload associated with the connection request. | |"]]