![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <AlexaInterfaceCapabilityAgent.h>
Additional Inherited Members | |
![]() | |
CapabilityAgent (const std::string &nameSpace, std::shared_ptr< sdkInterfaces::ExceptionEncounteredSenderInterface > exceptionEncounteredSender) | |
virtual std::shared_ptr< DirectiveInfo > | createDirectiveInfo (std::shared_ptr< AVSDirective > directive, std::unique_ptr< sdkInterfaces::DirectiveHandlerResultInterface > result) |
virtual void | preHandleDirective (std::shared_ptr< DirectiveInfo > info)=0 |
virtual void | handleDirective (std::shared_ptr< DirectiveInfo > info)=0 |
virtual void | cancelDirective (std::shared_ptr< DirectiveInfo > info)=0 |
void | removeDirective (const std::string &messageId) |
void | sendExceptionEncounteredAndReportFailed (std::shared_ptr< DirectiveInfo > info, const std::string &message, avsCommon::avs::ExceptionErrorType type=avsCommon::avs::ExceptionErrorType::INTERNAL_ERROR) |
const std::pair< std::string, std::string > | buildJsonEventString (const std::string &eventName, const std::string &dialogRequestIdString="", const std::string &payload="{}", const std::string &context="") const |
![]() | |
const std::string | m_namespace |
The namespace of the capability agent. More... | |
std::shared_ptr< sdkInterfaces::ExceptionEncounteredSenderInterface > | m_exceptionEncounteredSender |
Object to use to send exceptionEncountered messages. More... | |
Capability Agent to handle directives under the Alexa Namespace.
|
override |
|
static |
Creates an instance of AlexaInterfaceCapabilityAgent
.
deviceInfo | Structure with information about the Alexa client device. |
endpointId | The EndpointIdentifier for the endpoint that will own this capability. |
exceptionEncounteredSender | The ExceptionEncounteredSender to send exceptions. |
alexaMessageSender | The AlexaInterfaceMessageSender to send AlexaInterface events. |
AlexaInterfaceCapabilityAgent
on success, nullptr
otherwise.
|
static |
Creates an instance of AlexaInterfaceCapabilityAgent
.
deviceInfo | Structure with information about the Alexa client device. |
endpointId | The endpoint to which this capability is associated. |
exceptionEncounteredSender | The ExceptionEncounteredSender to send exceptions. |
alexaMessageSender | The AlexaInterfaceMessageSender to send AlexaInterface events. |
AlexaInterfaceCapabilityAgent
on success, nullptr
otherwise.
|
static |
Creates an instance of AlexaInterfaceCapabilityAgent
for the default endpoint.
deviceInfo | Structure with information about the Alexa client device. |
exceptionEncounteredSender | The ExceptionEncounteredSender to send exceptions. |
alexaMessageSender | The AlexaInterfaceMessageSender to send AlexaInterface events. |
alexaEventProcessedNotifier | The AlexaEventProcessedNotifierInterface to notify observers of AlexaEventProcessed events. |
endpointCapabilitiesRegistrar | The EndpointCapabilitiesRegistrarInterface for the default endpoint (annotated with DefaultEndpointAnnotation), so that the SpeakerManager can register itself as a capability with the default endpoint. |
AlexaInterfaceCapabilityAgent
on success, nullptr
otherwise. avsCommon::avs::CapabilityConfiguration alexaClientSDK::capabilityAgents::alexa::AlexaInterfaceCapabilityAgent::getCapabilityConfiguration | ( | ) |
Get the capability configuration for this agent.
|
overridevirtual |
Returns the configuration of the directive handler.
The configuration consists of multiple directive routing rules and their respective blocking policy. The directives will be matched from the most specific rule (with all fields defined) to the least specific rule (which only matches the directive endpointId).
avs::DirectiveHandlerConfiguration
of the handler. Implements alexaClientSDK::avsCommon::sdkInterfaces::DirectiveHandlerInterface.
|
override |
|
overridevirtual |
Handle the action specified AVSDirective
. Once this has been called the DirectiveHandler
should not expect to receive further calls regarding this directive.
AVSDirectives
. ExceptionEncountered
message should be sent to AVS.directive | The directive to handle. |
Implements alexaClientSDK::avsCommon::sdkInterfaces::DirectiveHandlerInterface.
|
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