![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <AlexaClientSDKInit.h>
Public Member Functions | |
~AlexaClientSDKInit () | |
Static Public Member Functions | |
static std::function< std::shared_ptr< AlexaClientSDKInit >std::shared_ptr< utils::logger::Logger >)> | getCreateAlexaClientSDKInit (const std::vector< std::shared_ptr< std::istream >> &jsonStreams) |
static std::function< std::shared_ptr< AlexaClientSDKInit >std::shared_ptr< utils::logger::Logger >)> | getCreateAlexaClientSDKInit (const std::shared_ptr< InitializationParameters > &initParams) |
static bool | isInitialized () |
static bool | initialize (const std::vector< std::shared_ptr< std::istream >> &jsonStreams) |
static bool | initialize (const std::shared_ptr< InitializationParameters > &initParams) |
static void | uninitialize () |
Class encapsulating the lifetime of initialization of the Alexa Client SDK.
alexaClientSDK::avsCommon::avs::initialization::AlexaClientSDKInit::~AlexaClientSDKInit | ( | ) |
Destructor.
|
static |
jsonStreams | Vector of istreams containing JSON documents from which to parse configuration parameters. Streams are processed in the order they appear in the vector. When a value appears in more than one JSON stream the last processed stream's value overwrites the previous value (and a debug log entry will be created). This allows for specifying default settings (by providing them first) and specifying the configuration from multiple sources (e.g. a separate stream for each component). Documentation of the JSON configuration format and methods to access the resulting global configuration can be found here: avsCommon::utils::configuration::ConfigurationNode. |
|
static |
Get a function to create an instance of AlexaClientSDKInit.
InitializationParameters
.initParams | The InitializationParameters . |
|
static |
This function must be called before any threads in the process have been created by the program; this function is not thread safe. This requirement is present because initialize() calls functions of other libraries that have the same requirements and thread safety. terminate() must be called for each initialize() called.
jsonStreams | Vector of istreams containing JSON documents from which to parse configuration parameters. Streams are processed in the order they appear in the vector. When a value appears in more than one JSON stream the last processed stream's value overwrites the previous value (and a debug log entry will be created). This allows for specifying default settings (by providing them first) and specifying the configuration from multiple sources (e.g. a separate stream for each component). Documentation of the JSON configuration format and methods to access the resulting global configuration can be found here: avsCommon::utils::configuration::ConfigurationNode. |
|
static |
Initialize the Alexa Client SDK. This must be called before any Alexa Client SDK modules are created.
This function must be called before any threads in the process have been created by the program; this function is not thread safe. This requirement is present because initialize() calls functions of other libraries that have the same requirements and thread safety. terminate() must be called for each initialize() called.
initParams | The InitializationParameters . |
|
static |
Checks whether the Alexa Client SDK has been initialized.
|
static |
Uninitialize the Alexa Client SDK.
You should call uninitialize() once for each call you make to initialize(), after you are done using the Alexa Client SDK.
This function must be called when no other threads in the process are running. this function is not thread safe. This requirement is present because uninitialize() calls functions of other libraries that have the same requirements and thread safety.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0