![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Public Member Functions | |
TestNotificationsObserver () | |
bool | waitFor (IndicatorState state, std::chrono::milliseconds timeout) |
bool | waitFor (int count, std::chrono::milliseconds timeout) |
void | onSetIndicator (IndicatorState state) override |
void | onNotificationReceived () override |
![]() | |
virtual | ~NotificationsObserverInterface ()=default |
A test class that acts as a NotificationsObserver.
alexaClientSDK::acsdkNotifications::test::TestNotificationsObserver::TestNotificationsObserver | ( | ) |
|
overridevirtual |
Notifies the observer that a new notification has been received. This is called repeatedly for duplicate notifications.
Implements alexaClientSDK::acsdkNotificationsInterfaces::NotificationsObserverInterface.
|
overridevirtual |
Notifies the observer that a SetIndicator directive has been processed
state | The value of the persistVisualIndicator field of the directive. |
Implements alexaClientSDK::acsdkNotificationsInterfaces::NotificationsObserverInterface.
bool alexaClientSDK::acsdkNotifications::test::TestNotificationsObserver::waitFor | ( | IndicatorState | state, |
std::chrono::milliseconds | timeout | ||
) |
Waits for an IndicatorState change.
state | The IndicatorState to wait for. |
timeout | The amount of time to wait for the state change. |
bool alexaClientSDK::acsdkNotifications::test::TestNotificationsObserver::waitFor | ( | int | count, |
std::chrono::milliseconds | timeout | ||
) |
Waits for IndicationCount to increase.
count | The number of indicator events to wait for. |
timeout | The amount of time to wait for the state change. |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0