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

Constructors and Destructors

~ICrossAppEndpointDiscoveryListener()

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()