![]() |
AlexaClientSDK
1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Public Member Functions | |
void | connect () |
void | disconnect () |
std::shared_ptr< ConnectionStatusObserver > | getConnectionStatusObserver () |
bool | sendEvent (const std::string &jsonContent, avsCommon::sdkInterfaces::MessageRequestObserverInterface::Status expectedStatus, std::chrono::seconds timeout, std::shared_ptr< avsCommon::avs::attachment::AttachmentReader > attachmentReader=nullptr) |
bool | checkForServerSideDisconnect () |
![]() | |
RequiresShutdown (const std::string &name) | |
virtual | ~RequiresShutdown () |
Destructor. More... | |
const std::string & | name () const |
void | shutdown () |
bool | isShutdown () const |
Static Public Member Functions | |
static std::unique_ptr< AVSCommunication > | create (std::shared_ptr< AuthDelegateInterface > authDelegate) |
Protected Member Functions | |
void | doShutdown () override |
This class tests the functionality for communication between client and AVS using ACL library.
bool alexaClientSDK::integration::test::AVSCommunication::checkForServerSideDisconnect | ( | ) |
The function to check for Server Side Disconnect for the current connection.
void alexaClientSDK::integration::test::AVSCommunication::connect | ( | ) |
The function to establish connection by enabling the m_avsConnectionManager
.
|
static |
Create an AVSCommunication object which initializes m_connectionStatusObserver
, m_avsConnectionManager
, m_authDelegate
and m_messageRouter
.
authDelegate | AuthDelegate to use to authorize access to AVS . |
nullptr
if create fails. void alexaClientSDK::integration::test::AVSCommunication::disconnect | ( | ) |
The function to tear down the connection by disabling the m_avsConnectionManager
.
|
overrideprotectedvirtual |
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.
std::shared_ptr< ConnectionStatusObserver > alexaClientSDK::integration::test::AVSCommunication::getConnectionStatusObserver | ( | ) |
Function to retun the connection status observer.
bool alexaClientSDK::integration::test::AVSCommunication::sendEvent | ( | const std::string & | jsonContent, |
avsCommon::sdkInterfaces::MessageRequestObserverInterface::Status | expectedStatus, | ||
std::chrono::seconds | timeout, | ||
std::shared_ptr< avsCommon::avs::attachment::AttachmentReader > | attachmentReader = nullptr |
||
) |
The function to send one message to AVS.
jsonContent | The content in json format to send in the message. |
expectedStatus | The expected status of the message being sent to AVS. |
timeout | The maximum time to wait for the expectedStatus . |
attachmentReader | The attachment reader for the MessageRequest. |
timeout
else false. AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0