AlexaClientSDK  1.25.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Typedefs | Functions
alexaClientSDK::acsdkAlexaCommunications Namespace Reference

Typedefs

using AlexaCommunicationsComponent = acsdkManufactory::Component< std::shared_ptr< avsCommon::sdkInterfaces::AVSConnectionManagerInterface >, std::shared_ptr< avsCommon::sdkInterfaces::MessageSenderInterface >, acsdkManufactory::Import< std::shared_ptr< avsCommon::sdkInterfaces::AuthDelegateInterface > >, acsdkManufactory::Import< std::shared_ptr< avsCommon::sdkInterfaces::EventTracerInterface > >, acsdkManufactory::Import< std::shared_ptr< avsCommon::sdkInterfaces::InternetConnectionMonitorInterface > >, acsdkManufactory::Import< acsdkManufactory::Annotated< avsCommon::sdkInterfaces::AVSConnectionManagerInterface, avsCommon::utils::libcurlUtils::LibcurlSetCurlOptionsCallbackFactoryInterface > >, acsdkManufactory::Import< std::shared_ptr< avsCommon::utils::metrics::MetricRecorderInterface > >, acsdkManufactory::Import< std::shared_ptr< acsdkShutdownManagerInterfaces::ShutdownNotifierInterface > >>
 

Functions

AlexaCommunicationsComponent getComponent ()
 
static std::shared_ptr< HTTP2ConnectionFactoryInterfacecreateHTTP2ConnectionFactory (const Annotated< AVSConnectionManagerInterface, LibcurlSetCurlOptionsCallbackFactoryInterface > &callbackFactory)
 

Typedef Documentation

◆ AlexaCommunicationsComponent

Manufactory Component definition for the default libcurl based implementation of AlexaCommunications.

Function Documentation

◆ createHTTP2ConnectionFactory()

static std::shared_ptr<HTTP2ConnectionFactoryInterface> alexaClientSDK::acsdkAlexaCommunications::createHTTP2ConnectionFactory ( const Annotated< AVSConnectionManagerInterface, LibcurlSetCurlOptionsCallbackFactoryInterface > &  callbackFactory)
static

This function adapts an Annotated<AVSConnectionManagerInterface, LibcurlSetCurlOptionsCallbackFactoryInterface> to a shared_ptr<AVSConnectionManagerInterface> and creates a HTTP2ConnectionFactory.

TODO: ACSDK-4957

Note
This is only necessary because LibcurlHTTP2ConnectionFactory is in AVSCommon and is prohibited from using acsdkManufactory::Annotated<> because acsdkManufactory depends upon AVSCommon. This will be fixed when acsdkManufactory's depenency upon AVSCommon is removed.
Parameters
callbackFactoryThe Annotated curl options callback factory
Returns
A HTTP2ConnectionFactoryInterface.

◆ getComponent()

AlexaCommunicationsComponent alexaClientSDK::acsdkAlexaCommunications::getComponent ( )

Get the Manufactory component for creating an instance of AVSConnectionMangerInterface.

Returns
The Manufactory component for creating an instance of AVSConnectionMangerInterface.

AlexaClientSDK 1.25.0 - Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0