AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | List of all members
alexaClientSDK::acsdkAlerts::renderer::test::MockRendererObserver Class Reference
Inheritance diagram for alexaClientSDK::acsdkAlerts::renderer::test::MockRendererObserver:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::acsdkAlerts::renderer::test::MockRendererObserver:
Collaboration graph
[legend]

Public Member Functions

bool waitFor (RendererObserverInterface::State newState)
 
bool waitFor (RendererObserverInterface::State newState, std::chrono::milliseconds maxWait)
 
void onRendererStateChange (RendererObserverInterface::State newState, const std::string &reason)
 
- Public Member Functions inherited from alexaClientSDK::acsdkAlerts::renderer::RendererObserverInterface
virtual ~RendererObserverInterface ()=default
 

Additional Inherited Members

- Public Types inherited from alexaClientSDK::acsdkAlerts::renderer::RendererObserverInterface
enum  State {
  State::UNSET, State::STARTED, State::STOPPED, State::COMPLETED,
  State::ERROR
}
 
- Static Public Member Functions inherited from alexaClientSDK::acsdkAlerts::renderer::RendererObserverInterface
static std::string stateToString (State state)
 

Member Function Documentation

◆ onRendererStateChange()

void alexaClientSDK::acsdkAlerts::renderer::test::MockRendererObserver::onRendererStateChange ( RendererObserverInterface::State  state,
const std::string &  reason 
)
inlinevirtual

A callback function to communicate a change in render state.

Parameters
stateThe current state of the renderer.
reasonThe reason for the change of state, if required. This is typically set on an error.

Implements alexaClientSDK::acsdkAlerts::renderer::RendererObserverInterface.

◆ waitFor() [1/2]

bool alexaClientSDK::acsdkAlerts::renderer::test::MockRendererObserver::waitFor ( RendererObserverInterface::State  newState)
inline

◆ waitFor() [2/2]

bool alexaClientSDK::acsdkAlerts::renderer::test::MockRendererObserver::waitFor ( RendererObserverInterface::State  newState,
std::chrono::milliseconds  maxWait 
)
inline

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