AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <LocaleAssetsManager.h>
Static Public Member Functions | |
static std::shared_ptr< avsCommon::sdkInterfaces::LocaleAssetsManagerInterface > | createLocaleAssetsManagerInterface (const std::shared_ptr< avsCommon::utils::configuration::ConfigurationNode > &configurationNode, const std::shared_ptr< acsdkShutdownManagerInterfaces::ShutdownNotifierInterface > &shutdownNotifier) |
static std::shared_ptr< LocaleAssetsManager > | createLocaleAssetsManager (const std::shared_ptr< avsCommon::utils::configuration::ConfigurationNode > &configurationNode) |
static std::shared_ptr< LocaleAssetsManager > | create (bool enableWakeWord) |
Additional Inherited Members | |
Public Types inherited from alexaClientSDK::avsCommon::sdkInterfaces::LocaleAssetsManagerInterface | |
using | Locale = std::string |
using | LanguageTag = std::string |
using | WakeWords = std::set< std::string > |
using | WakeWordsSets = std::set< WakeWords > |
using | Locales = std::vector< Locale > |
using | LocaleCombinations = std::set< Locales > |
Sample implementation of an asset manager.
This manager will use the AlexaClientSDKConfig.json
to retrieve the supported locales. For devices with wake word enabled this class will support "ALEXA" only.
|
overridevirtual |
Add a locale assets observer to be notified when locale assets have updated.
observer | The observer to add. |
Implements alexaClientSDK::avsCommon::sdkInterfaces::LocaleAssetsManagerInterface.
|
overridevirtual |
Method used to cancel an ongoing prepareAssets
call.
This will get called when there is a change to the required assets. It's up to the implementation to decide how and when to cancel the ongoing operation.
Implements alexaClientSDK::avsCommon::sdkInterfaces::LocaleAssetsManagerInterface.
|
overridevirtual |
Method to change the current assets.
locales | The locales. |
wakeWords | The wake words that should be available and enabled. |
true
if it succeeds; false
otherwise. Implements alexaClientSDK::avsCommon::sdkInterfaces::LocaleAssetsManagerInterface.
|
static |
Create a LocaleAssetsManager object.
nullptr
.
|
static |
Create an instance of LocaleAssetsManager
.
configurationNode | A pointer to the ConfigurationNode instance. |
nullptr
.
|
static |
Create an instance of LocaleAssetsManagerInterface
.
configurationNode | A pointer to the ConfigurationNode instance. |
shutdownNotifier | A pointer to the ShutdownNotifier instance. |
LocaleAssetsManagerInterface
.
|
overridevirtual |
Prepares/enables this object to be deleted. This should be the last function called on this object prior to deleting (or resetting) its shared_ptr.
Implements alexaClientSDK::avsCommon::utils::RequiresShutdown.
|
overridevirtual |
Get the default locale.
Implements alexaClientSDK::avsCommon::sdkInterfaces::LocaleAssetsManagerInterface.
|
overridevirtual |
Get the default multilingual locales.
Reimplemented from alexaClientSDK::avsCommon::sdkInterfaces::LocaleAssetsManagerInterface.
|
overridevirtual |
Get the default valid concurrent wake words sets.
getLocaleSpecificWakeWords()
for locales that have a different set of supported wake words. Implements alexaClientSDK::avsCommon::sdkInterfaces::LocaleAssetsManagerInterface.
|
overridevirtual |
Function that return valid concurrent wake words sets per language (if and only if locale support a set of wake words that's different than the default set).
Implements alexaClientSDK::avsCommon::sdkInterfaces::LocaleAssetsManagerInterface.
|
overridevirtual |
Function that return the valid concurrent wake words sets per locale (if and only if locale support a set of wake words that's different than the default set or the language set).
Implements alexaClientSDK::avsCommon::sdkInterfaces::LocaleAssetsManagerInterface.
|
overridevirtual |
Get the supported locales combinations.
Implements alexaClientSDK::avsCommon::sdkInterfaces::LocaleAssetsManagerInterface.
|
overridevirtual |
Get the supported locales.
Implements alexaClientSDK::avsCommon::sdkInterfaces::LocaleAssetsManagerInterface.
|
overridevirtual |
Get the valid concurrent wake words sets for the given locale.
locale | The target locale. |
Implements alexaClientSDK::avsCommon::sdkInterfaces::LocaleAssetsManagerInterface.
|
overridevirtual |
Notification that a CapabilityAgent configuration is changed.
configuration | The CapabilityAgent configuration. |
Implements alexaClientSDK::avsCommon::sdkInterfaces::CapabilityConfigurationChangeObserverInterface.
|
overridevirtual |
Remove a previously registered observer.
observer | The observer to be removed. |
Implements alexaClientSDK::avsCommon::sdkInterfaces::LocaleAssetsManagerInterface.
|
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