A test observer that mocks out the ChannelObserverInterface#onFocusChanged() call.
More...
A test observer that mocks out the ChannelObserverInterface#onFocusChanged() call.
◆ TestClient()
alexaClientSDK::afml::test::TestClient::TestClient |
( |
const std::string & |
channelName, |
|
|
const std::string & |
interfaceName |
|
) |
| |
|
inline |
◆ createActivity()
std::shared_ptr<FocusManagerInterface::Activity> alexaClientSDK::afml::test::TestClient::createActivity |
( |
ContentType |
contentType = ContentType::NONMIXABLE , |
|
|
std::chrono::milliseconds |
patience = std::chrono::milliseconds(0) |
|
) |
| |
|
inline |
◆ getChannelName()
const std::string& alexaClientSDK::afml::test::TestClient::getChannelName |
( |
| ) |
const |
|
inline |
◆ getInterfaceName()
const std::string& alexaClientSDK::afml::test::TestClient::getInterfaceName |
( |
| ) |
const |
|
inline |
◆ onFocusChanged()
◆ waitForFocusOrMixingBehaviorChange()
testClientInfo alexaClientSDK::afml::test::TestClient::waitForFocusOrMixingBehaviorChange |
( |
std::chrono::milliseconds |
timeout | ) |
|
|
inline |
Waits for the ChannelObserverInterface#onFocusChanged() callback.
- Parameters
-
timeout | The amount of time to wait for the callback. |
focusChanged | An output parameter that notifies the caller whether a callback occurred. |
- Returns
- Returns
true
if the callback occured within the timeout period and false
otherwise.
The documentation for this class was generated from the following file:
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0