![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <AVSConnectionManagerInterface.h>
Public Types | |
using | ConnectionStatusObserverInterface = avsCommon::sdkInterfaces::ConnectionStatusObserverInterface |
Type alias for brevity. More... | |
Public Member Functions | |
virtual | ~AVSConnectionManagerInterface ()=default |
virtual void | enable ()=0 |
virtual void | disable ()=0 |
virtual bool | isEnabled ()=0 |
virtual void | reconnect ()=0 |
virtual bool | isConnected () const =0 |
virtual void | onWakeConnectionRetry ()=0 |
virtual void | addMessageObserver (std::shared_ptr< avsCommon::sdkInterfaces::MessageObserverInterface > observer)=0 |
virtual void | removeMessageObserver (std::shared_ptr< avsCommon::sdkInterfaces::MessageObserverInterface > observer)=0 |
virtual void | addConnectionStatusObserver (std::shared_ptr< ConnectionStatusObserverInterface > observer)=0 |
virtual void | removeConnectionStatusObserver (std::shared_ptr< ConnectionStatusObserverInterface > observer)=0 |
![]() | |
virtual | ~AVSGatewayAssignerInterface ()=default |
Destructor. More... | |
virtual void | setAVSGateway (const std::string &avsGateway)=0 |
virtual std::string | getAVSGateway () const =0 |
This class reflects a connection to AVS and how it may be observed.
using alexaClientSDK::avsCommon::sdkInterfaces::AVSConnectionManagerInterface::ConnectionStatusObserverInterface = avsCommon::sdkInterfaces::ConnectionStatusObserverInterface |
Type alias for brevity.
|
virtualdefault |
Destructor.
|
pure virtual |
Adds an observer to be notified of connection status changes. The observer will be notified of the current connection status before this function returns.
observer | The observer to add. |
|
pure virtual |
Adds an observer to be notified of message receptions.
observer | The observer object to add. |
Implemented in alexaClientSDK::acl::AVSConnectionManager.
|
pure virtual |
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.
Implemented in alexaClientSDK::acl::AVSConnectionManager.
|
pure virtual |
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.
Implemented in alexaClientSDK::acl::AVSConnectionManager.
|
pure virtual |
Returns whether the AVS connection is established. If the connection is pending, false
will be returned.
Implemented in alexaClientSDK::acl::AVSConnectionManager, and alexaClientSDK::capabilityAgents::system::test::MockConnection.
|
pure virtual |
Returns if the object is enabled for making connections to AVS.
Implemented in alexaClientSDK::acl::AVSConnectionManager.
|
pure virtual |
This method is a hint to retry connecting (if not connected).
Implemented in alexaClientSDK::acl::AVSConnectionManager.
|
pure virtual |
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.
Implemented in alexaClientSDK::acl::AVSConnectionManager.
|
pure virtual |
Removes an observer from being notified of connection status changes.
observer | The observer to remove. |
|
pure virtual |
Removes an observer from being notified of message receptions.
observer | The observer object to remove. |
Implemented in alexaClientSDK::acl::AVSConnectionManager.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0