AlexaClientSDK
1.19.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <AlertObserverInterface.h>
Public Member Functions | |
virtual | ~AlertObserverInterface ()=default |
virtual void | onAlertStateChange (const std::string &alertToken, const std::string &alertType, State state, const std::string &reason="")=0 |
Static Public Member Functions | |
static std::string | stateToString (State state) |
An interface for observing state changes on an Alert object.
An enum class to represent the states an alert can be in.
|
virtualdefault |
Destructor.
|
pure virtual |
A callback function to notify an object that an alert has updated its state.
alertToken | The AVS token of the alert. |
alertType | The type of the alert. |
state | The state of the alert. |
reason | The reason for the state change. |
Implemented in alexaClientSDK::capabilityAgents::alerts::test::TestAlertObserver, alexaClientSDK::capabilityAgents::alerts::AlertsCapabilityAgent, alexaClientSDK::capabilityAgents::alerts::AlertScheduler, alexaClientSDK::diagnostics::DevicePropertyAggregator, and alexaClientSDK::integration::test::TestAlertObserver.
|
inlinestatic |
Convert a State
to a std::string
.
state | The State to convert. |
state
. AlexaClientSDK 1.19.0 - Copyright 2016-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0