AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Capability Agent API and implementation for AVS Speaker 1.0 interface. More...
Modules | |
Unit tests for Speaker API Capability Agent. | |
Capability Agent unit tests. | |
Test mocks for speaker manager interfaces. | |
Capability Agent unit tests. | |
Namespaces | |
alexaClientSDK::speakerManager | |
Speaker API Capability Agent Interface and Implementation. | |
Classes | |
struct | alexaClientSDK::speakerManager::SpeakerManagerConfigInterface |
Speaker manager configuration interface. More... | |
struct | alexaClientSDK::speakerManager::SpeakerManagerStorageInterface |
Speaker manager storage interface. More... | |
struct | alexaClientSDK::speakerManager::SpeakerManagerStorageState::ChannelState |
struct | alexaClientSDK::speakerManager::SpeakerManagerStorageState |
Storage state for SpeakerManager. More... | |
Capability Agent API and implementation for AVS Speaker 1.0 interface.
|
noexcept |
Creates speaker manager CA.
Method creates new speaker manager capability agent, adds supplied volume interfaces, and registers instance in capabilities registry and in shutdown manager.
Additional channel volume interfaces can be added after construction using public SpeakerManagerInterface methods.
Speaker manager groups all channels by type, and applies volume settings and configurations uniformly to all channels of the same type.
Speaker manager uses SpeakerManagerConfigInterface to load initial (bootstrap) platform configuration, and SpeakerManagerStorageInterface to store and load persistent settings. Those interfaces
[in] | config | Interface to load platform configuration. |
[in] | storage | Interface to load and store persistent configuration. |
[in] | contextManager | A ContextManagerInterface to manage the context. |
[in] | messageSender | A MessageSenderInterface to send messages to AVS. |
[in] | exceptionEncounteredSender | An ExceptionEncounteredSenderInterface to send directive processing exceptions to AVS. |
[in] | metricRecorder | The metric recorder. |
[in] | shutdownNotifier | Factory uses this interface to register for shutdown notifications. |
[in] | endpointCapabilitiesRegistrar | Factory uses this interface to register capability. |
[in] | volumeInterfaces | Optional vector of ChannelVolumeInterfaces to register. Additional interfaces can be added with SpeakerManagerInterface::addChannelVolumeInterface() calls. |
|
noexcept |
Creates configuration interface for speaker manager.
The method returns an interface that accesses configuration using ConfigurationNode
facility. The returned object uses "speakerManagerCapabilityAgent" child and looks up the following keys:
If AlexaClientSDKConfig.json configuration file is used, the example configuration may look like:
|
noexcept |
Adapt generic MiscStorageInterface
into SpeakerManagerStorageInterface
.
Method returns an adapter of SpeakerManagerStorageInterface
to SpeakerManagerStorageInterface
.
[in] | storage | Reference of MiscStorageInterface . This parameter must not be nullptr. |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0