Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
gpg::ICrossAppEndpointDiscoveryListener
Dies ist eine abstrakte Klasse.
#include <i_cross_app_endpoint_discovery_listener.h>
Definiert eine Schnittstelle, die Ereignisse in Bezug auf die appübergreifende Remote-Endpunkterkennung übergeben kann.
Zusammenfassung
Öffentliche Funktionen
|
OnCrossAppEndpointFound(int64_t client_id, const EndpointDetails & endpoint_details, const std::vector< AppIdentifier > & app_identifiers)=0
|
virtual void
Wird aufgerufen, wenn ein Remote-Endpunkt gefunden wird. wird für jeden erkannten Endpunkt einmal aufgerufen.
|
OnCrossAppEndpointLost(int64_t client_id, const std::string & instance_id)=0
|
virtual void
Wird aufgerufen, wenn ein Remote-Endpunkt nicht mehr sichtbar ist. wird nur mit IDs aufgerufen, die zuvor an OnEndpointFound übergeben wurden.
|
Öffentliche Funktionen
OnCrossAppEndpointFound
virtual void OnCrossAppEndpointFound(
int64_t client_id,
const EndpointDetails & endpoint_details,
const std::vector< AppIdentifier > & app_identifiers
)=0
Wird aufgerufen, wenn ein Remote-Endpunkt gefunden wird. wird für jeden erkannten Endpunkt einmal aufgerufen.
Beachten Sie, dass diese Methode mehrfach in kurzer Abfolge aufgerufen werden kann. Sie können die Aktualisierung der Benutzeroberfläche so lange verzögern, bis der neue Endpunkt nach dem Aufrufen der Methode angezeigt wird.
OnCrossAppEndpointLost
virtual void OnCrossAppEndpointLost(
int64_t client_id,
const std::string & instance_id
)=0
Wird aufgerufen, wenn ein Remote-Endpunkt nicht mehr sichtbar ist. wird nur mit IDs aufgerufen, die zuvor an OnEndpointFound
übergeben wurden.
Beachten Sie, dass diese Methode mehrfach in kurzer Abfolge aufgerufen werden kann. Sie können das Update der Benutzeroberfläche verzögern, damit der Endpunkt nach dem Aufrufen der Methode für einen kurzen Zeitraum nicht mehr verfügbar ist.
~ICrossAppEndpointDiscoveryListener
virtual ~ICrossAppEndpointDiscoveryListener()
Alle Inhalte und Codebeispiele auf dieser Seite unterliegen den Lizenzen wie im Abschnitt Inhaltslizenz beschrieben. Java und OpenJDK sind Marken oder eingetragene Marken von Oracle und/oder seinen Tochtergesellschaften.
Zuletzt aktualisiert: 2025-07-27 (UTC).
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-07-27 (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```"]]