![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <RendererObserverInterface.h>
Public Types | |
enum | State { State::UNSET, State::STARTED, State::STOPPED, State::COMPLETED, State::ERROR } |
Public Member Functions | |
virtual | ~RendererObserverInterface ()=default |
virtual void | onRendererStateChange (State state, const std::string &reason="")=0 |
Static Public Member Functions | |
static std::string | stateToString (State state) |
An interface class which specifies an observer to an Alert
renderer.
The states which a Renderer may be in.
|
virtualdefault |
Destructor.
|
pure virtual |
A callback function to communicate a change in render state.
state | The current state of the renderer. |
reason | The reason for the change of state, if required. This is typically set on an error. |
Implemented in alexaClientSDK::acsdkAlerts::Alert, and alexaClientSDK::acsdkAlerts::renderer::test::MockRendererObserver.
|
inlinestatic |
Convert a State
to a std::string
.
state | The State to convert. |
state
. AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0