AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Class to manage the top-level components of the AVS Client Application. More...
#include <SampleApplication.h>
Classes | |
class | AdapterRegistration |
class | MediaPlayerRegistration |
Public Member Functions | |
SampleAppReturnCode | run () |
~SampleApplication () | |
Destructor which manages the SampleApplication shutdown sequence. More... | |
std::shared_ptr< alexaClientSDK::defaultClient::DefaultClient > | getDefaultClient () |
bool | createMediaPlayersForAdapters (const std::shared_ptr< avsCommon::sdkInterfaces::HTTPContentFetcherInterfaceFactoryInterface > &httpContentFetcherFactory, std::shared_ptr< defaultClient::EqualizerRuntimeSetup > equalizerRuntimeSetup) |
Static Public Member Functions | |
static std::unique_ptr< SampleApplication > | create (std::shared_ptr< alexaClientSDK::sampleApp::ConsoleReader > consoleReader, const std::vector< std::string > &configFiles, const std::string &logLevel="", std::shared_ptr< avsCommon::sdkInterfaces::diagnostics::DiagnosticsInterface > diagnostics=nullptr) |
Class to manage the top-level components of the AVS Client Application.
alexaClientSDK::sampleApp::SampleApplication::~SampleApplication | ( | ) |
Destructor which manages the SampleApplication
shutdown sequence.
|
static |
Create a SampleApplication.
consoleReader | The ConsoleReader to read inputs from console. |
configFiles | The vector of configuration files. |
logLevel | The level of logging to enable. If this parameter is an empty string, the SDK's default logging level will be used. |
diagnostics | An optional DiagnosticsInterface object to provide diagnostics on the SDK. |
SampleApplication
, or nullptr
if the operation failed. bool alexaClientSDK::sampleApp::SampleApplication::createMediaPlayersForAdapters | ( | const std::shared_ptr< avsCommon::sdkInterfaces::HTTPContentFetcherInterfaceFactoryInterface > & | httpContentFetcherFactory, |
std::shared_ptr< defaultClient::EqualizerRuntimeSetup > | equalizerRuntimeSetup | ||
) |
Method to create mediaPlayers for the optional music provider adapters plugged into the SDK.
httpContentFetcherFactory | The HTTPContentFetcherFactory to be used while creating the mediaPlayers. |
equalizerRuntimeSetup | Equalizer runtime setup to register equalizers |
true
if the mediaPlayer of all the registered adapters could be created false
otherwise. std::shared_ptr<alexaClientSDK::defaultClient::DefaultClient> alexaClientSDK::sampleApp::SampleApplication::getDefaultClient | ( | ) |
Exposes the default client.
DefaultClient
. SampleAppReturnCode alexaClientSDK::sampleApp::SampleApplication::run | ( | ) |
Runs the application, blocking until the user asks the application to quit or a device reset is triggered.
SampleAppReturnCode
. AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0