#include <TestMessageSender.h>
◆ ~TestMessageSender()
alexaClientSDK::integration::test::TestMessageSender::~TestMessageSender |
( |
| ) |
|
|
default |
◆ TestMessageSender()
◆ addConnectionStatusObserver()
◆ addMessageObserver()
Adds an observer to be notified of message receptions.
- Parameters
-
observer | The observer object to add. |
◆ disable()
void alexaClientSDK::integration::test::TestMessageSender::disable |
( |
| ) |
|
Disable the AVSConnectionManager object. If the object is currently connected to AVS, then calling this function will cause the connection to be closed. If the object is not connected, then calling this function will do nothing.
◆ doShutdown()
void alexaClientSDK::integration::test::TestMessageSender::doShutdown |
( |
| ) |
|
|
overridevirtual |
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.
- Warning
- Attempting to call functions on this object after calling shutdown() can result in undefined behavior.
- Neglecting to call shutdown() on this object can result in resource leaks or other undefined behavior.
Implements alexaClientSDK::avsCommon::utils::RequiresShutdown.
◆ enable()
void alexaClientSDK::integration::test::TestMessageSender::enable |
( |
| ) |
|
Enable the AVSConnectionManager object to make connections to AVS. Once enabled, the object will attempt to create a connection to AVS. If the object is already connected, this function will do nothing.
◆ getConnectionManager()
std::shared_ptr< acl::AVSConnectionManager > alexaClientSDK::integration::test::TestMessageSender::getConnectionManager |
( |
| ) |
const |
◆ isEnabled()
bool alexaClientSDK::integration::test::TestMessageSender::isEnabled |
( |
| ) |
|
Returns if the object is enabled for making connections to AVS.
- Returns
- Whether this Connection object is enabled to make connections.
◆ reconnect()
void alexaClientSDK::integration::test::TestMessageSender::reconnect |
( |
| ) |
|
This function causes the object, if enabled, to create new connection to AVS. If the object is already connected, then that connection will be closed and a new one created. If the object is not connected, but perhaps in the process of waiting for its next connection attempt, then its waiting policy will be reset and it will attempt to create a new connection immediately. If the object is disabled, then this function will do nothing.
◆ removeConnectionStatusObserver()
Removes an observer from being notified of connection status changes.
- Parameters
-
observer | The observer object to remove. |
◆ removeMessageObserver()
Removes an observer from being notified of message receptions.
- Parameters
-
observer | The observer object to remove. |
◆ sendMessage()
◆ setAVSGateway()
void alexaClientSDK::integration::test::TestMessageSender::setAVSGateway |
( |
const std::string & |
avsGateway | ) |
|
Set the gateway URL for the AVS connection. Calling this function with a new value will cause the current active connection to be closed, and a new one opened to the new gateway.
- Parameters
-
avsGateway | The URL for the new AVS gateway. |
◆ waitForNext()
The documentation for this class was generated from the following files:
AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0