Stay organized with collections
Save and categorize content based on your preferences.
GooglePlayGames.BasicApi.Nearby.IDiscoveryListener
Interface for receiving notifications about discovered endpoints.
Summary
Public functions
OnEndpointFound
void OnEndpointFound(
EndpointDetails discoveredEndpoint
)
Called when an endpoint is found during discovery.
Details |
Parameters |
discoveredEndpoint
|
The details of the discovered endpoint.
|
|
OnEndpointLost
void OnEndpointLost(
string lostEndpointId
)
Called when an endpoint is lost during discovery.
Details |
Parameters |
lostEndpointId
|
The ID of the lost endpoint.
|
|
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.IDiscoveryListener Interface Reference\n\nGooglePlayGames.BasicApi.Nearby.IDiscoveryListener\n==================================================\n\nInterface for receiving notifications about discovered endpoints.\n\nSummary\n-------\n\n| ### Public functions ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------|\n| [OnEndpointFound](#interface_google_play_games_1_1_basic_api_1_1_nearby_1_1_i_discovery_listener_1a82dbe486b3388e52517e255c9feded7c)`(`[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)` discoveredEndpoint)` | `void` Called when an endpoint is found during discovery. |\n| [OnEndpointLost](#interface_google_play_games_1_1_basic_api_1_1_nearby_1_1_i_discovery_listener_1abc2d1177a0c39356406854e18154d1a3)`(string lostEndpointId)` | `void` Called when an endpoint is lost during discovery. |\n\nPublic functions\n----------------\n\n### OnEndpointFound\n\n```c#\nvoid OnEndpointFound(\n EndpointDetails discoveredEndpoint\n)\n``` \nCalled when an endpoint is found during discovery.\n\n\u003cbr /\u003e\n\n| Details ||\n|------------|---------------------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |----------------------|-----------------------------------------| | `discoveredEndpoint` | The details of the discovered endpoint. | |\n\n### OnEndpointLost\n\n```c#\nvoid OnEndpointLost(\n string lostEndpointId\n)\n``` \nCalled when an endpoint is lost during discovery.\n\n\u003cbr /\u003e\n\n| Details ||\n|------------|---------------------------------------------------------------------------------------------------------|\n| Parameters | |------------------|------------------------------| | `lostEndpointId` | The ID of the lost endpoint. | |"]]