![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <ConnectionObserver.h>
A class that observes the status of authorization and connection to AVS.
alexaClientSDK::sampleApplications::ipcServerSampleApp::ConnectionObserver::ConnectionObserver | ( | ) |
Constructor.
|
overridevirtual |
Notification that an authorization state has changed.
newState | The new state of the authorization token. |
error | The error associated to the state change. |
Implements alexaClientSDK::avsCommon::sdkInterfaces::AuthObserverInterface.
|
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.
bool alexaClientSDK::sampleApplications::ipcServerSampleApp::ConnectionObserver::waitFor | ( | const avsCommon::sdkInterfaces::AuthObserverInterface::State | authState, |
const std::chrono::seconds | duration = std::chrono::seconds(20) |
||
) |
Waits for the specified authorization state.
authState | The auth state to wait for. |
duration | The optional duration to wait for. This defaults to 20 seconds. |
bool alexaClientSDK::sampleApplications::ipcServerSampleApp::ConnectionObserver::waitFor | ( | const avsCommon::sdkInterfaces::ConnectionStatusObserverInterface::Status | connectionStatus, |
const std::chrono::seconds | duration = std::chrono::seconds(20) |
||
) |
Waits for the specified connection state.
authState | The connection state to wait for. |
duration | The optional duration to wait for. This defaults to 20 seconds. |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0