AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <GuiRenderer.h>
Public Member Functions | |
GuiRenderer () | |
avsCommon::utils::Optional< bool > | getGuiToggleState (const std::string &toggleName) |
TemplateRuntimeObserverInterface Functions | |
void | renderTemplateCard (const std::string &jsonPayload) override |
void | renderPlayerInfoCard (const std::string &jsonPayload, TemplateRuntimeObserverInterface::AudioPlayerInfo info) override |
Public Member Functions inherited from alexaClientSDK::templateRuntimeInterfaces::TemplateRuntimeObserverInterface | |
virtual | ~TemplateRuntimeObserverInterface ()=default |
virtual void | renderPlayerInfoCard (const std::string &jsonPayload, TemplateRuntimeObserverInterface::AudioPlayerInfo audioPlayerInfo)=0 |
Static Public Attributes | |
static const std::string | TOGGLE_ACTION_SELECTED |
String to identify the AVS action SELECTED string. More... | |
static const std::string | TOGGLE_ACTION_DESELECTED |
String to identify the AVS action DESELECTED string. More... | |
static const std::string | TOGGLE_NAME_SHUFFLE |
String to identify the AVS name SHUFFLE string. More... | |
static const std::string | TOGGLE_NAME_LOOP |
String to identify the AVS name LOOP string. More... | |
static const std::string | TOGGLE_NAME_REPEAT |
String to identify the AVS name REPEAT string. More... | |
static const std::string | TOGGLE_NAME_THUMBSUP |
String to identify the AVS name THUMBS_UP string. More... | |
static const std::string | TOGGLE_NAME_THUMBSDOWN |
String to identify the AVS name THUMBS_DOWN string. More... | |
A class that implements the TemplateRuntimeObserverInterface. Instead of rendering the display cards, this class will print out some useful information (e.g. JSON payload) when the renderTemplateCard or renderPlayerInfoCard callbacks are called.
It is also used to track the PlayerInfo controls, and provide the PlayerInfo toggle states.
ACSDK_EMIT_SENSITIVE_LOGS
is ON. alexaClientSDK::sampleApp::GuiRenderer::GuiRenderer | ( | ) |
Constructor.
avsCommon::utils::Optional<bool> alexaClientSDK::sampleApp::GuiRenderer::getGuiToggleState | ( | const std::string & | toggleName | ) |
Returns the UI state of a toggle button
toggleName | Name of the toggle button |
|
override |
|
overridevirtual |
Used to notify the observer when a RenderTemplate directive is received. Once called, the client should render the Template display card based on the metadata provided in the payload in structured JSON format.
jsonPayload | The payload of the RenderTemplate directive in structured JSON format. |
Implements alexaClientSDK::templateRuntimeInterfaces::TemplateRuntimeObserverInterface.
|
static |
String to identify the AVS action DESELECTED string.
|
static |
String to identify the AVS action SELECTED string.
|
static |
String to identify the AVS name LOOP string.
|
static |
String to identify the AVS name REPEAT string.
|
static |
String to identify the AVS name SHUFFLE string.
|
static |
String to identify the AVS name THUMBS_DOWN string.
|
static |
String to identify the AVS name THUMBS_UP string.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0