|
|
avsCommon::avs::DirectiveHandlerConfiguration | getConfiguration () const override |
|
void | handleDirectiveImmediately (std::shared_ptr< avsCommon::avs::AVSDirective > directive) override |
|
void | preHandleDirective (std::shared_ptr< avsCommon::avs::CapabilityAgent::DirectiveInfo > info) override |
|
void | handleDirective (std::shared_ptr< avsCommon::avs::CapabilityAgent::DirectiveInfo > info) override |
|
void | cancelDirective (std::shared_ptr< avsCommon::avs::CapabilityAgent::DirectiveInfo > info) override |
|
void | doShutdown () override |
|
|
std::future< bool > | setVolume (avsCommon::sdkInterfaces::ChannelVolumeInterface::Type type, int8_t volume, const NotificationProperties &properties) override |
|
std::future< bool > | adjustVolume (avsCommon::sdkInterfaces::ChannelVolumeInterface::Type type, int8_t delta, const NotificationProperties &properties) override |
|
std::future< bool > | setMute (avsCommon::sdkInterfaces::ChannelVolumeInterface::Type type, bool mute, const NotificationProperties &properties) override |
|
std::future< bool > | setVolume (avsCommon::sdkInterfaces::ChannelVolumeInterface::Type type, int8_t volume, bool forceNoNotifications=false, avsCommon::sdkInterfaces::SpeakerManagerObserverInterface::Source source=avsCommon::sdkInterfaces::SpeakerManagerObserverInterface::Source::LOCAL_API) override |
|
std::future< bool > | adjustVolume (avsCommon::sdkInterfaces::ChannelVolumeInterface::Type type, int8_t delta, bool forceNoNotifications=false, avsCommon::sdkInterfaces::SpeakerManagerObserverInterface::Source source=avsCommon::sdkInterfaces::SpeakerManagerObserverInterface::Source::LOCAL_API) override |
|
std::future< bool > | setMute (avsCommon::sdkInterfaces::ChannelVolumeInterface::Type type, bool mute, bool forceNoNotifications=false, avsCommon::sdkInterfaces::SpeakerManagerObserverInterface::Source source=avsCommon::sdkInterfaces::SpeakerManagerObserverInterface::Source::LOCAL_API) override |
|
std::future< bool > | getSpeakerSettings (avsCommon::sdkInterfaces::ChannelVolumeInterface::Type type, avsCommon::sdkInterfaces::SpeakerInterface::SpeakerSettings *settings) override |
|
void | addSpeakerManagerObserver (std::shared_ptr< avsCommon::sdkInterfaces::SpeakerManagerObserverInterface > observer) override |
|
void | removeSpeakerManagerObserver (std::shared_ptr< avsCommon::sdkInterfaces::SpeakerManagerObserverInterface > observer) override |
|
void | addChannelVolumeInterface (std::shared_ptr< avsCommon::sdkInterfaces::ChannelVolumeInterface > channelVolumeInterface) override |
|
|
std::unordered_set< std::shared_ptr< avsCommon::avs::CapabilityConfiguration > > | getCapabilityConfigurations () override |
|
virtual | ~CapabilityAgent ()=default |
|
void | preHandleDirective (std::shared_ptr< AVSDirective > directive, std::unique_ptr< sdkInterfaces::DirectiveHandlerResultInterface > result) override final |
|
bool | handleDirective (const std::string &messageId) override final |
|
void | cancelDirective (const std::string &messageId) override final |
|
void | onDeregistered () override |
|
void | onFocusChanged (FocusState newFocus, MixingBehavior behavior) override |
|
Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::DirectiveHandlerInterface |
virtual | ~DirectiveHandlerInterface ()=default |
|
virtual void | handleDirectiveImmediately (std::shared_ptr< avsCommon::avs::AVSDirective > directive)=0 |
|
virtual void | preHandleDirective (std::shared_ptr< avsCommon::avs::AVSDirective > directive, std::unique_ptr< DirectiveHandlerResultInterface > result)=0 |
|
virtual | ~ChannelObserverInterface ()=default |
|
virtual | ~StateProviderInterface ()=default |
|
virtual void | provideState (const avs::NamespaceAndName &stateProviderName, const ContextRequestToken stateRequestToken) |
|
virtual void | provideState (const avs::CapabilityTag &stateProviderName, const ContextRequestToken stateRequestToken) |
|
virtual bool | canStateBeRetrieved () |
|
virtual bool | hasReportableStateProperties () |
|
virtual bool | shouldQueryState () |
|
virtual | ~ContextRequesterInterface ()=default |
|
virtual void | onContextAvailable (const std::string &jsonContext) |
|
virtual void | onContextAvailable (const endpoints::EndpointIdentifier &endpointId, const avs::AVSContext &endpointContext, ContextRequestToken requestToken) |
|
virtual void | onContextFailure (const ContextRequestError error) |
|
virtual void | onContextFailure (const ContextRequestError error, ContextRequestToken token) |
|
virtual | ~CapabilityConfigurationInterface ()=default |
|
virtual void | addSpeakerManagerObserver (std::shared_ptr< SpeakerManagerObserverInterface > observer)=0 |
|
virtual void | removeSpeakerManagerObserver (std::shared_ptr< SpeakerManagerObserverInterface > observer)=0 |
|
virtual void | addChannelVolumeInterface (std::shared_ptr< ChannelVolumeInterface > channelVolumeInterface)=0 |
|
virtual | ~SpeakerManagerInterface ()=default |
|
| RequiresShutdown (const std::string &name) |
|
virtual | ~RequiresShutdown () |
| Destructor. More...
|
|
const std::string & | name () const |
|
void | shutdown () |
|
bool | isShutdown () const |
|
This class implements a CapabilityAgent
that handles the AVS Speaker
API.
The SpeakerManager
can handle multiple ChannelVolumeInterface
objects and dedupe them with the same getId() value. The ChannelVolumeInterface
are grouped by their respective ChannelVolumeInterface::Type
, and the volume and mute state will be consistent across each type. For example, to change the volume of all ChannelVolumeInterface
objects of a specific type:
if (result.valid()) {
result.wait();
}
Clients may extend the ChannelVolumeInterface::Type
enum if multiple independent volume controls are needed.