AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <StateSynchronizerObserverInterface.h>
Public Types | |
enum | State { State::NOT_SYNCHRONIZED, State::SYNCHRONIZED } |
Public Member Functions | |
virtual | ~StateSynchronizerObserverInterface ()=default |
virtual void | onStateChanged (State newState)=0 |
This interface provides a callback that signals state has been synchronized successfully. Since SynchronizeState
event should be the first message sent to AVS upon connection, if a component is sending a message, then it needs to know the state of StateSynchronizer
in order to start sending, and therefore contain an implementation of this interface. Moreover, said component or implementation should add themselves to StateSynchronizer
to receive the callback.
|
virtualdefault |
Destructor.
|
pure virtual |
Get the notification that the state has been synchronized.
newState | The state to which the StateSynchronizer has transitioned. |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0