AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
A test observer that mocks out the DialogUXStateObserverInterface#onDialogUXStateChanged() call. More...
Public Member Functions | |
TestObserver () | |
void | onDialogUXStateChanged (DialogUXStateObserverInterface::DialogUXState newState) override |
DialogUXStateObserverInterface::DialogUXState | waitForStateChange (std::chrono::milliseconds timeout, bool *uxChanged) |
Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::DialogUXStateObserverInterface | |
virtual | ~DialogUXStateObserverInterface ()=default |
Additional Inherited Members | |
Public Types inherited from alexaClientSDK::avsCommon::sdkInterfaces::DialogUXStateObserverInterface | |
enum | DialogUXState { DialogUXState::IDLE, DialogUXState::LISTENING, DialogUXState::EXPECTING, DialogUXState::THINKING, DialogUXState::SPEAKING, DialogUXState::FINISHED } |
The different dialog specific AVS UX states. More... | |
Static Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::DialogUXStateObserverInterface | |
static std::string | stateToString (DialogUXState state) |
A test observer that mocks out the DialogUXStateObserverInterface#onDialogUXStateChanged() call.
|
inline |
Constructor.
|
inlineoverridevirtual |
Implementation of the DialogUXStateObserverInterface#onDialogUXStateChanged() callback.
newState | The new UX state of the observer. |
Implements alexaClientSDK::avsCommon::sdkInterfaces::DialogUXStateObserverInterface.
|
inline |
Waits for the UXStateObserverInterface##onUXStateChanged() callback.
timeout | The amount of time to wait for the callback. |
uxChanged | An output parameter that notifies the caller whether a callback occurred. |
true
if the callback occured within the timeout period and false
otherwise. AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0