AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <Endpoint.h>
Public Types | |
using | EndpointIdentifier = avsCommon::sdkInterfaces::endpoints::EndpointIdentifier |
using | EndpointAttributes = avsCommon::avs::AVSDiscoveryEndpointAttributes |
Provides an implementation for EndpointInterface
.
using alexaClientSDK::endpoints::Endpoint::EndpointAttributes = avsCommon::avs::AVSDiscoveryEndpointAttributes |
Alias to improve readability.
using alexaClientSDK::endpoints::Endpoint::EndpointIdentifier = avsCommon::sdkInterfaces::endpoints::EndpointIdentifier |
Alias to improve readability.
alexaClientSDK::endpoints::Endpoint::Endpoint | ( | const EndpointAttributes & | attributes | ) |
Constructor.
attributes | The endpoint attributes. |
alexaClientSDK::endpoints::Endpoint::~Endpoint | ( | ) |
Destructor.
bool alexaClientSDK::endpoints::Endpoint::addCapability | ( | const avsCommon::avs::CapabilityConfiguration & | capabilityConfiguration, |
std::shared_ptr< avsCommon::sdkInterfaces::DirectiveHandlerInterface > | directiveHandler | ||
) |
Adds the capability configuration and its directive handler to the endpoint.
capabilityConfiguration | The capability agent configuration. |
directiveHandler | The DirectiveHandler for this capability. |
bool alexaClientSDK::endpoints::Endpoint::addCapabilityConfiguration | ( | const avsCommon::avs::CapabilityConfiguration & | capabilityConfiguration | ) |
This method is used to add capability configurations for interfaces that don't have any associated directive.
capabilityConfiguration |
true
if successful; false
otherwise. void alexaClientSDK::endpoints::Endpoint::addRequireShutdownObjects | ( | const std::list< std::shared_ptr< avsCommon::utils::RequiresShutdown >> & | requireShutdownObjects | ) |
This method can be used to add other objects that require shutdown during endpoint destruction.
requireShutdownObjects | The list of objects that require explicit shutdown calls. |
|
overridevirtual |
The getter for the endpoint attributes.
EndpointAttributes
structure. Implements alexaClientSDK::avsCommon::sdkInterfaces::endpoints::EndpointInterface.
|
overridevirtual |
The getter for the capabilities that are supported by this endpoint.
Implements alexaClientSDK::avsCommon::sdkInterfaces::endpoints::EndpointInterface.
|
overridevirtual |
The getter for the set of CapabilityConfigurations
supported by this endpoint.
CapabilityConfiguration
supported by the endpoint. Implements alexaClientSDK::avsCommon::sdkInterfaces::endpoints::EndpointInterface.
|
overridevirtual |
The getter for the endpoint identifier.
Implements alexaClientSDK::avsCommon::sdkInterfaces::endpoints::EndpointInterface.
bool alexaClientSDK::endpoints::Endpoint::removeCapability | ( | const avsCommon::avs::CapabilityConfiguration & | capabilityConfiguration | ) |
Removes the capability configuration from the endpoint.
capabilityConfiguration | The capability agent configuration. |
|
override |
bool alexaClientSDK::endpoints::Endpoint::validateEndpointAttributes | ( | const EndpointAttributes & | updatedAttributes | ) |
Validate the updated endpoint attributes.
updatedAttributes | The updated endpoint attributes. |
true
if valid; false
otherwise. AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0