Stay organized with collections
Save and categorize content based on your preferences.
gpg::ICrossAppEndpointDiscoveryListener
This is an abstract class.
#include <i_cross_app_endpoint_discovery_listener.h>
Defines an interface which can be delivered events relating to cross-app remote endpoint discovery.
Summary
Public functions
|
OnCrossAppEndpointFound(int64_t client_id, const EndpointDetails & endpoint_details, const std::vector< AppIdentifier > & app_identifiers)=0
|
virtual void
Invoked when a remote endpoint is found; will be invoked once for each endpoint discovered.
|
OnCrossAppEndpointLost(int64_t client_id, const std::string & instance_id)=0
|
virtual void
Invoked when a remote endpoint is no longer discoverable; will only be called with IDs that previously were passed to OnEndpointFound .
|
Public functions
OnCrossAppEndpointFound
virtual void OnCrossAppEndpointFound(
int64_t client_id,
const EndpointDetails & endpoint_details,
const std::vector< AppIdentifier > & app_identifiers
)=0
Invoked when a remote endpoint is found; will be invoked once for each endpoint discovered.
Note that this method may be invoked repeatedly in short succession; you may wish to delay the update to the UI to reflect the new endpoint for some short time period after the method is invoked.
OnCrossAppEndpointLost
virtual void OnCrossAppEndpointLost(
int64_t client_id,
const std::string & instance_id
)=0
Invoked when a remote endpoint is no longer discoverable; will only be called with IDs that previously were passed to OnEndpointFound
.
Note that this method may be invoked repeatedly in short succession; you may with to delay the update to the UI to reflect the endpoint being gone for some short time period after the method is invoked.
~ICrossAppEndpointDiscoveryListener
virtual ~ICrossAppEndpointDiscoveryListener()
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 2024-10-28 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 2024-10-28 UTC."],[],[],null,["# gpg::ICrossAppEndpointDiscoveryListener Class Reference\n\ngpg::ICrossAppEndpointDiscoveryListener\n=======================================\n\n**This is an abstract class.** \n\n`#include \u003ci_cross_app_endpoint_discovery_listener.h\u003e`\n\nDefines an interface which can be delivered events relating to cross-app remote endpoint discovery.\n\nSummary\n-------\n\n| ### Constructors and Destructors ||\n|---|---|\n| [~ICrossAppEndpointDiscoveryListener](#classgpg_1_1_i_cross_app_endpoint_discovery_listener_1a2dadf1440f5e15be043e76b165e409fc)`()` ||\n\n| ### Public functions ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [OnCrossAppEndpointFound](#classgpg_1_1_i_cross_app_endpoint_discovery_listener_1abf3c474e6d4ee0eae204655889fd4953)`(int64_t client_id, const `[EndpointDetails](/games/services/cpp/api/struct/gpg/endpoint-details#structgpg_1_1_endpoint_details)` & endpoint_details, const std::vector\u003c `[AppIdentifier](/games/services/cpp/api/struct/gpg/app-identifier#structgpg_1_1_app_identifier)` \u003e & app_identifiers)=0` | `virtual void` Invoked when a remote endpoint is found; will be invoked once for each endpoint discovered. |\n| [OnCrossAppEndpointLost](#classgpg_1_1_i_cross_app_endpoint_discovery_listener_1ae6c1bd2a5ec6fc9fd6d4e1972f86ed58)`(int64_t client_id, const std::string & instance_id)=0` | `virtual void` Invoked when a remote endpoint is no longer discoverable; will only be called with IDs that previously were passed to `OnEndpointFound`. |\n\nPublic functions\n----------------\n\n### OnCrossAppEndpointFound\n\n```c++\nvirtual void OnCrossAppEndpointFound(\n int64_t client_id,\n const EndpointDetails & endpoint_details,\n const std::vector\u003c AppIdentifier \u003e & app_identifiers\n)=0\n``` \nInvoked when a remote endpoint is found; will be invoked once for each endpoint discovered.\n\nNote that this method may be invoked repeatedly in short succession; you may wish to delay the update to the UI to reflect the new endpoint for some short time period after the method is invoked. \n\n### OnCrossAppEndpointLost\n\n```c++\nvirtual void OnCrossAppEndpointLost(\n int64_t client_id,\n const std::string & instance_id\n)=0\n``` \nInvoked when a remote endpoint is no longer discoverable; will only be called with IDs that previously were passed to `OnEndpointFound`.\n\nNote that this method may be invoked repeatedly in short succession; you may with to delay the update to the UI to reflect the endpoint being gone for some short time period after the method is invoked. \n\n### \\~ICrossAppEndpointDiscoveryListener\n\n```c++\nvirtual ~ICrossAppEndpointDiscoveryListener()\n```"]]