![]()  | 
  
    AlexaClientSDK
    3.0.0
    
   A cross-platform, modular SDK for interacting with the Alexa Voice Service 
   | 
 
#include <SettingConnectionObserver.h>


Public Member Functions | |
| ~SettingConnectionObserver ()=default | |
ConnectionStatusObserverInterface Functions  | |
| void | onConnectionStatusChanged (avsCommon::sdkInterfaces::ConnectionStatusObserverInterface::Status status, avsCommon::sdkInterfaces::ConnectionStatusObserverInterface::ChangedReason reason) override | 
  Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::ConnectionStatusObserverInterface | |
| virtual | ~ConnectionStatusObserverInterface ()=default | 
| virtual void | onConnectionStatusChanged (const Status status, const std::vector< EngineConnectionStatus > &engineStatuses) | 
Static Public Member Functions | |
| static std::shared_ptr< SettingConnectionObserver > | create (ConnectionStatusCallback notifyCallback) | 
An implementation of ConnectionStatusObserverInterface used to proxy connection status notifications used by the settings protocol. 
| using alexaClientSDK::settings::SettingConnectionObserver::ConnectionStatusCallback = std::function<void(bool isConnected)> | 
Callback function type used for notifying connections status changes.
| isConnected | If true, indicates that the device is connected to AVS, otherwise false. | 
      
  | 
  default | 
Destructor.
      
  | 
  static | 
Creates a SettingConnectionObserver shared object instance.
| notifyCallback | The function callback to be called whenever the connection status changes. | 
SettingConnectionObserver object if it succeeds; nullptr otherwise. 
      
  | 
  overridevirtual | 
Called when the AVS connection state changes.
| status | The current connection status. | 
| reason | The reason the status change occurred. | 
Implements alexaClientSDK::avsCommon::sdkInterfaces::ConnectionStatusObserverInterface.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0