AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Public Member Functions | Static Public Member Functions | List of all members
alexaClientSDK::sampleApplications::ipcServerSampleApp::SampleApplication Class Reference

Class to manage the top-level components of the AVS Client Application. More...

#include <SampleApplication.h>


class  AdapterRegistration
class  MediaPlayerRegistration

Public Member Functions

SampleAppReturnCode run ()
 ~SampleApplication ()
 Destructor which manages the SampleApplication shutdown sequence. More...
bool createMediaPlayersForAdapters (const std::shared_ptr< avsCommon::sdkInterfaces::HTTPContentFetcherInterfaceFactoryInterface > &httpContentFetcherFactory, const std::shared_ptr< defaultClient::EqualizerRuntimeSetup > equalizerRuntimeSetup)

Static Public Member Functions

static std::unique_ptr< SampleApplicationcreate (const std::vector< std::string > &configFiles, const std::string &logLevel="", std::shared_ptr< avsCommon::sdkInterfaces::diagnostics::DiagnosticsInterface > diagnostics=nullptr)

Detailed Description

Class to manage the top-level components of the AVS Client Application.

Constructor & Destructor Documentation

◆ ~SampleApplication()

alexaClientSDK::sampleApplications::ipcServerSampleApp::SampleApplication::~SampleApplication ( )

Destructor which manages the SampleApplication shutdown sequence.

Member Function Documentation

◆ create()

static std::unique_ptr<SampleApplication> alexaClientSDK::sampleApplications::ipcServerSampleApp::SampleApplication::create ( const std::vector< std::string > &  configFiles,
const std::string &  logLevel = "",
std::shared_ptr< avsCommon::sdkInterfaces::diagnostics::DiagnosticsInterface diagnostics = nullptr 

Create a SampleApplication.

configFilesThe vector of configuration files.
logLevelThe level of logging to enable. If this parameter is an empty string, the SDK's default logging level will be used.
diagnosticsAn optional DiagnosticsInterface object to provide diagnostics on the SDK.
A new SampleApplication, or nullptr if the operation failed.

◆ createMediaPlayersForAdapters()

bool alexaClientSDK::sampleApplications::ipcServerSampleApp::SampleApplication::createMediaPlayersForAdapters ( const std::shared_ptr< avsCommon::sdkInterfaces::HTTPContentFetcherInterfaceFactoryInterface > &  httpContentFetcherFactory,
const std::shared_ptr< defaultClient::EqualizerRuntimeSetup equalizerRuntimeSetup 

Method to create mediaPlayers for the optional music provider adapters plugged into the SDK.

httpContentFetcherFactoryThe HTTPContentFetcherFactory to be used while creating the mediaPlayers.
equalizerRuntimeSetupEqualizer runtime setup to register equalizers
true if the mediaPlayer of all the registered adapters could be created false otherwise.

◆ run()

SampleAppReturnCode alexaClientSDK::sampleApplications::ipcServerSampleApp::SampleApplication::run ( )

Runs the application, blocking until the user asks the application to quit or a device reset is triggered.

Returns a SampleAppReturnCode.

The documentation for this class was generated from the following file:

AlexaClientSDK 3.0.0 - Copyright 2016-2022, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0