Stay organized with collections
Save and categorize content based on your preferences.
GooglePlayGames.BasicApi.Nearby.AdvertisingResult
Represents the result of an attempt to start advertising for nearby connections.
Summary
Properties
|
LocalEndpointName
|
string
Gets the name of the local endpoint used in the advertising operation.
|
Status
|
Gets the response status of the advertising operation.
|
Succeeded
|
bool
Gets a value indicating whether the advertising operation was successful.
|
Properties
LocalEndpointName
string GooglePlayGames::BasicApi::Nearby::AdvertisingResult::LocalEndpointName
Gets the name of the local endpoint used in the advertising operation.
Status
ResponseStatus GooglePlayGames::BasicApi::Nearby::AdvertisingResult::Status
Gets the response status of the advertising operation.
Succeeded
bool GooglePlayGames::BasicApi::Nearby::AdvertisingResult::Succeeded
Gets a value indicating whether the advertising operation was successful.
Public functions
AdvertisingResult
GooglePlayGames::BasicApi::Nearby::AdvertisingResult::AdvertisingResult(
ResponseStatus status,
string localEndpointName
)
Constructs a new AdvertisingResult.
Details |
Parameters |
status
|
The result of the advertising attempt.
|
localEndpointName
|
The name of the local endpoint.
|
|
Exceptions |
System.ArgumentNullException
|
If localEndpointName is null.
|
|
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-08 UTC."],[],[],null,["# GooglePlayGames.BasicApi.Nearby.AdvertisingResult Struct Reference\n\nGooglePlayGames.BasicApi.Nearby.AdvertisingResult\n=================================================\n\nRepresents the result of an attempt to start advertising for nearby connections.\n\nSummary\n-------\n\n| ### Constructors and Destructors ||\n|---|---|\n| [AdvertisingResult](#struct_google_play_games_1_1_basic_api_1_1_nearby_1_1_advertising_result_1a7a7b962142e1c090e12db45d232dfd11)`(`[ResponseStatus](/games/services/unity/v2/api/namespace/google-play-games/basic-api#namespace_google_play_games_1_1_basic_api_1afc173c0f78ea77552386c8f699526dea)` status, string localEndpointName)` Constructs a new [AdvertisingResult](/games/services/unity/v2/api/struct/google-play-games/basic-api/nearby/advertising-result#struct_google_play_games_1_1_basic_api_1_1_nearby_1_1_advertising_result). ||\n\n| ### Properties ||\n|-----------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [LocalEndpointName](#struct_google_play_games_1_1_basic_api_1_1_nearby_1_1_advertising_result_1af41c66883f19dbfca3be2d309da0309a) | `string` Gets the name of the local endpoint used in the advertising operation. |\n| [Status](#struct_google_play_games_1_1_basic_api_1_1_nearby_1_1_advertising_result_1a28212ae180d3033c1ff444b608f26746) | [ResponseStatus](/games/services/unity/v2/api/namespace/google-play-games/basic-api#namespace_google_play_games_1_1_basic_api_1afc173c0f78ea77552386c8f699526dea) Gets the response status of the advertising operation. |\n| [Succeeded](#struct_google_play_games_1_1_basic_api_1_1_nearby_1_1_advertising_result_1a3b1c3a80228f13adefa30720c30a810b) | `bool` Gets a value indicating whether the advertising operation was successful. |\n\nProperties\n----------\n\n### LocalEndpointName\n\n```c#\nstring GooglePlayGames::BasicApi::Nearby::AdvertisingResult::LocalEndpointName\n``` \nGets the name of the local endpoint used in the advertising operation. \n\n### Status\n\n```c#\nResponseStatus GooglePlayGames::BasicApi::Nearby::AdvertisingResult::Status\n``` \nGets the response status of the advertising operation. \n\n### Succeeded\n\n```c#\nbool GooglePlayGames::BasicApi::Nearby::AdvertisingResult::Succeeded\n``` \nGets a value indicating whether the advertising operation was successful.\n\nPublic functions\n----------------\n\n### AdvertisingResult\n\n```c#\n GooglePlayGames::BasicApi::Nearby::AdvertisingResult::AdvertisingResult(\n ResponseStatus status,\n string localEndpointName\n)\n``` \nConstructs a new [AdvertisingResult](/games/services/unity/v2/api/struct/google-play-games/basic-api/nearby/advertising-result#struct_google_play_games_1_1_basic_api_1_1_nearby_1_1_advertising_result).\n\n\u003cbr /\u003e\n\n| Details ||\n|------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |---------------------|----------------------------------------| | `status` | The result of the advertising attempt. | | `localEndpointName` | The name of the local endpoint. | |\n| Exceptions | |--------------------------------|-------------------------------| | `System.ArgumentNullException` | If localEndpointName is null. | |"]]