AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <EndpointRegistrationManagerInterface.h>
Public Member Functions | |
virtual | ~EndpointRegistrationManagerInterface ()=default |
virtual std::future< RegistrationResult > | registerEndpoint (std::shared_ptr< EndpointInterface > endpoint)=0 |
virtual std::future< UpdateResult > | updateEndpoint (const EndpointIdentifier &endpointId, const std::shared_ptr< EndpointModificationData > &endpointModificationData)=0 |
virtual std::future< DeregistrationResult > | deregisterEndpoint (const EndpointIdentifier &endpointId)=0 |
virtual void | addObserver (std::shared_ptr< EndpointRegistrationObserverInterface > observer)=0 |
virtual void | removeObserver (const std::shared_ptr< EndpointRegistrationObserverInterface > &observer)=0 |
Class responsible for managing endpoints handled by this client. This includes:
CapabilitiesDelegateInterface
).DirectiveSequencerInterface
.using alexaClientSDK::avsCommon::sdkInterfaces::endpoints::EndpointRegistrationManagerInterface::DeregistrationResult = EndpointRegistrationObserverInterface::DeregistrationResult |
using alexaClientSDK::avsCommon::sdkInterfaces::endpoints::EndpointRegistrationManagerInterface::RegistrationResult = EndpointRegistrationObserverInterface::RegistrationResult |
Aliases.
using alexaClientSDK::avsCommon::sdkInterfaces::endpoints::EndpointRegistrationManagerInterface::UpdateResult = EndpointRegistrationObserverInterface::UpdateResult |
|
virtualdefault |
Destructor
|
pure virtual |
Adds a registration manager observer to be notified when a registration has succeeded.
observer | The observer to add. |
Implemented in alexaClientSDK::endpoints::EndpointRegistrationManager.
|
pure virtual |
Deregisters an endpoint.
endpoint | The EndpointIdentifier of the endpoint to be deregistered. |
true
when the endpoint has been deregistered, or that is set to false
if the operation failed. EndpointRegistrationObserverInterface
to get notified whenever the operation succeeds or fails. Implemented in alexaClientSDK::endpoints::EndpointRegistrationManager.
|
pure virtual |
Registers an endpoint.
endpoint | A pointer to the EndpointInterface to be registered. |
true
when the endpoint has been registered and enabled, or that is set to false
if the operation failed. EndpointRegistrationObserverInterface
to get notified whenever the operation succeeds or fails. Implemented in alexaClientSDK::endpoints::EndpointRegistrationManager.
|
pure virtual |
Remove a previously registered observer.
observer | The observer to be removed. |
Implemented in alexaClientSDK::endpoints::EndpointRegistrationManager.
|
pure virtual |
Update an existing endpoint.
endpointId | The EndpointIdentifier of the endpoint to be updated. |
endpointModificationData | A pointer to the EndpointModificationData used to update the endpoint. |
true
when the endpoint has been updated, or that is set to false
if the operation failed. EndpointRegistrationObserverInterface
to get notified whenever the operation succeeds or fails. endpointModificationData
, the desync of capabilities between AVS and the device would happen. Applications should treat failure to update the default endpoint as a critical error. Implemented in alexaClientSDK::endpoints::EndpointRegistrationManager.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0