![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <LocaleWakeWordsSetting.h>
Public Member Functions | |
~LocaleWakeWordsSetting () | |
LocaleSetting methods. | |
SetSettingResult | setLocalChange (const DeviceLocales &locale) override |
bool | setAvsChange (const DeviceLocales &locale) override |
bool | clearData (const DeviceLocales &locale) override |
WakeWordsSetting methods. | |
SetSettingResult | setLocalChange (const WakeWords &wakeWords) override |
bool | setAvsChange (const WakeWords &WakeWords) override |
bool | clearData (const WakeWords &WakeWords) override |
ConnectionStatusObserverInterface methods. | |
void | onConnectionStatusChanged (const Status status, const ChangedReason reason) override |
![]() | |
virtual | ~SettingInterface ()=default |
virtual SetSettingResult | setLocalChange (const ValueType &value)=0 |
virtual bool | setAvsChange (const ValueType &value)=0 |
virtual bool | clearData (const ValueType &value)=0 |
ValueType | get () const |
ValueType | getDefault () const |
bool | addObserver (std::shared_ptr< ObserverType > observer) |
void | removeObserver (std::shared_ptr< ObserverType > &observer) |
![]() | |
virtual | ~ConnectionStatusObserverInterface ()=default |
virtual void | onConnectionStatusChanged (const Status status, const std::vector< EngineConnectionStatus > &engineStatuses) |
Static Public Member Functions | |
static std::shared_ptr< LocaleWakeWordsSetting > | create (std::shared_ptr< SettingEventSenderInterface > localeEventSender, std::shared_ptr< SettingEventSenderInterface > wakeWordsEventSender, std::shared_ptr< storage::DeviceSettingStorageInterface > settingStorage, std::shared_ptr< avsCommon::sdkInterfaces::LocaleAssetsManagerInterface > assetsManager) |
Additional Inherited Members | |
![]() | |
using | GuardedValue = avsCommon::utils::GuardedValue< ValueType > |
Alias for GuardedValue with the templated value ValueType . More... | |
using | LogEntry = avsCommon::utils::logger::LogEntry |
Alias to make log entries less verbose. More... | |
![]() | |
SettingInterface (const ValueType &value) | |
void | notifyObservers (SettingNotifications notification) |
![]() | |
std::mutex | m_observerMutex |
Mutex used to guard observers. More... | |
std::unordered_set< std::shared_ptr< ObserverType > > | m_observers |
Set of all observers of this setting. More... | |
std::conditional< std::is_scalar< ValueType >::value, std::atomic< ValueType >, GuardedValue >::type | m_value |
The setting value. (is_trivially_copyable is not supported on gcc4.8) More... | |
const ValueType | m_defaultValue |
The default setting value. More... | |
Implements the interfaces to set Locale and WakeWords settings.
using alexaClientSDK::settings::types::LocaleWakeWordsSetting::RequestId = unsigned int |
Alias for request id.
|
strong |
alexaClientSDK::settings::types::LocaleWakeWordsSetting::~LocaleWakeWordsSetting | ( | ) |
Destructor
|
override |
|
override |
|
static |
Create a LocaleWakeWordsSetting object.
localeEventSender | Object used to send events to AVS in order to report locale changes on the device. |
wakeWordsEventSender | Object used to send events to AVS in order to report wakeword changes on the device. |
settingStorage | The setting storage object. |
assetsManager | An asset manager that is responsible for managing locale and wakeword assets. |
nullptr
otherwise.
|
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.
|
override |
|
override |
|
override |
|
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