AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <CapabilitiesDelegate.h>
CapabilitiesDelegate provides an implementation of the CapabilitiesDelegateInterface. It allows clients to register capabilities implemented by agents and publish them so that Alexa is aware of the device's capabilities.
While updating capabilities for an endpoint, the device will also send the cached capabilities of all endpoints that share the same registration information. Such endpoints are referred to as deduplicated endpoints.
|
override |
|
overridevirtual |
Updates an existing endpoint's capabilities or, if the endpoint does not already exist, registers a new endpoint.
endpointAttributes | The EndpointAttributes for the registering endpoint. |
capabilities | The array of CapabilityConfiguration the endpoint supports. |
CapabilitiesDelegateObserverInterface
. Implements alexaClientSDK::avsCommon::sdkInterfaces::CapabilitiesDelegateInterface.
|
overridevirtual |
Reset any internal state that may be associated with a particular user.
Implements alexaClientSDK::registrationManager::CustomerDataHandlerInterface.
|
static |
Create an CapabilitiesDelegate.
authDelegate | The auth delegate instance needed for CapabilitiesDelegate. |
storage | The storage instance needed for CapabilitiesDelegate. |
customerDataManager | Object that will track the CustomerDataHandler. |
nullptr
.
|
static |
Create an instance of CapabilitiesDelegateInterface.
authDelegate | The auth delegate instance needed for CapabilitiesDelegate. |
storage | The storage instance needed for CapabilitiesDelegate. |
customerDataManager | Object that will track the CustomerDataHandler. |
providerRegistrar | Object with which to register the new instance as a post connect operation provider. |
shutdownNotifier | The object to register with to be notified when it is time to shut down. |
alexaEventProcessedNotifier | The object to register with to be notified of AlexaEventProcessed directives. |
metricRecorder | Optional reference to metric recorder. |
nullptr
.
|
overridevirtual |
Creates a post connect operation instance.
PostConnectOperationInterface
. Implements alexaClientSDK::avsCommon::sdkInterfaces::PostConnectOperationProviderInterface.
|
overridevirtual |
Deletes an existing endpoint.
endpointAttributes | The EndpointAttributes for the deregistering endpoint. |
capabilities | The array of CapabilityConfiguration the endpoint supports. |
CapabilitiesDelegateObserverInterface
. Implements alexaClientSDK::avsCommon::sdkInterfaces::CapabilitiesDelegateInterface.
|
overridevirtual |
Prepares/enables this object to be deleted. This should be the last function called on this object prior to deleting (or resetting) its shared_ptr.
Implements alexaClientSDK::avsCommon::utils::RequiresShutdown.
|
overridevirtual |
Invalidates the capabilities reported to the AVS last. Capabilities information should be rebuilt and reported to the AVS during the next synchronization.
Implements alexaClientSDK::avsCommon::sdkInterfaces::CapabilitiesDelegateInterface.
|
overridevirtual |
This function is called whenever an Alexa.EventProcessed directive is received.
eventCorrelationToken | The EventCorrelationToken string. |
Implements alexaClientSDK::avsCommon::sdkInterfaces::AlexaEventProcessedObserverInterface.
|
overridevirtual |
Observer method to be called when the AVS Gateway is changed.
avsGateway | The AVS Gateway the device should be connected to. |
Implements alexaClientSDK::avsCommon::sdkInterfaces::AVSGatewayObserverInterface.
|
overridevirtual |
Called when the AVS connection state changes.
status | The current connection status. |
reason | The reason the status change occurred. |
Implements alexaClientSDK::avsCommon::sdkInterfaces::ConnectionStatusObserverInterface.
|
overridevirtual |
This method will be called when the discovery event has completed successfully.
PostConnectCapabilitiesPublisher
's execution thread and should return immediately.PostConnectCapabilitiesPublisher
to report the success state when ALL of the the discovery events are sent.addOrUpdateReportEndpoints | The map of addOrUpdateReport endpoints sent in the discovery events. |
deleteReportEndpoints | The map of deleteReport endpoints sent in the discovery events. |
Implements alexaClientSDK::capabilitiesDelegate::DiscoveryStatusObserverInterface.
|
overridevirtual |
This method will be called when the discovery event has failed.
status | The MessageRequestObserverInterface::Status indicating the HTTP error encountered. |
Implements alexaClientSDK::capabilitiesDelegate::DiscoveryStatusObserverInterface.
|
override |
void alexaClientSDK::capabilitiesDelegate::CapabilitiesDelegate::setDiscoveryEventSender | ( | const std::shared_ptr< DiscoveryEventSenderInterface > & | discoveryEventSender | ) |
Sets the event sender used to send Discovery events.
|
override |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0