AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <TemplateRuntimeHandler.h>
Public Member Functions | |
void | registerHandlers () |
Register this handler for its namespace and its methods for the corresponding namespace functions. More... | |
TemplateRuntimePresentationAdapterObserverInterface Functions | |
void | renderTemplateCard (const std::string &jsonPayload) override |
void | renderPlayerInfoCard (const std::string &jsonPayload, templateRuntimeInterfaces::TemplateRuntimeObserverInterface::AudioPlayerInfo audioPlayerInfo) override |
void | clearRenderTemplateCard () override |
void | clearPlayerInfoCard () override |
RequiresShutdown Functions | |
void | doShutdown () override |
Public Member Functions inherited from alexaClientSDK::sampleApplications::ipcServerSampleApp::ipc::IPCHandlerBase | |
void | invokeMethod (const std::string &methodName, const std::string &message) |
~IPCHandlerBase () | |
Public Member Functions inherited from alexaClientSDK::avsCommon::utils::RequiresShutdown | |
RequiresShutdown (const std::string &name) | |
virtual | ~RequiresShutdown () |
Destructor. More... | |
const std::string & | name () const |
void | shutdown () |
bool | isShutdown () const |
Public Member Functions inherited from alexaClientSDK::sampleApplications::common::TemplateRuntimePresentationAdapterObserverInterface | |
virtual | ~TemplateRuntimePresentationAdapterObserverInterface ()=default |
Static Public Member Functions | |
static std::shared_ptr< TemplateRuntimeHandler > | create (const std::shared_ptr< IPCHandlerRegistrationInterface > &ipcHandlerRegistrar, const std::shared_ptr< TemplateRuntimeHandlerInterface > &templateRuntimeComponent) |
Additional Inherited Members | |
Public Types inherited from alexaClientSDK::sampleApplications::ipcServerSampleApp::ipc::IPCHandlerBase | |
using | IPCMessageHandler = std::function< void(const std::string &)> |
Alias for the message handler function. More... | |
Protected Member Functions inherited from alexaClientSDK::sampleApplications::ipcServerSampleApp::ipc::IPCHandlerBase | |
IPCHandlerBase (const std::string &namespaceName, std::shared_ptr< alexaClientSDK::avsCommon::utils::threading::Executor > executor) | |
bool | registerIPCMessageHandlerMethod (const std::string &methodName, IPCMessageHandler handlerFunction) |
bool | deregisterIPCMessageHandlerMethod (const std::string &methodName) |
Protected Attributes inherited from alexaClientSDK::sampleApplications::ipcServerSampleApp::ipc::IPCHandlerBase | |
std::string | m_namespaceName |
Name of the namespace of the realized IPC handler class. More... | |
std::unordered_map< std::string, IPCMessageHandler > | m_messageHandlers |
Dictionary to hold the IPC message handler methods. More... | |
std::shared_ptr< alexaClientSDK::avsCommon::utils::threading::Executor > | m_executor |
Executor context to support operations asynchronously. More... | |
A contract for the handler that will handle the TemplateRuntime namespace messages coming from the IPC client.
|
overridevirtual |
Used to notify when the player info card should be cleared.
Implements alexaClientSDK::sampleApplications::common::TemplateRuntimePresentationAdapterObserverInterface.
|
overridevirtual |
Used to notify when the render template card should be cleared.
Implements alexaClientSDK::sampleApplications::common::TemplateRuntimePresentationAdapterObserverInterface.
|
static |
Create an instance of TemplateRuntimeHandler
ipcHandlerRegistrar | Used to register TemplateRuntimeHandler . |
templateRuntimeComponent | Pointer to the TemplateRuntimeHandlerInterface . |
TemplateRuntimeHandler
|
overridevirtual |
Prepares/enables this object to be deleted. This should be the last function called on this object prior to deleting (or resetting) its shared_ptr.
Implements alexaClientSDK::avsCommon::utils::RequiresShutdown.
void alexaClientSDK::sampleApplications::ipcServerSampleApp::ipc::TemplateRuntimeHandler::registerHandlers | ( | ) |
Register this handler for its namespace and its methods for the corresponding namespace functions.
|
overridevirtual |
Used to notify when a RenderPlayerInfo presentation is ready to display. Once called, the client should render the PlayerInfo display card based on the metadata provided in the payload in structured JSON format.
jsonPayload | The payload of the RenderPlayerInfo directive in structured JSON format. |
audioPlayerInfo | Information on the AudioPlayer . |
Implements alexaClientSDK::sampleApplications::common::TemplateRuntimePresentationAdapterObserverInterface.
|
overridevirtual |
Used to notify when a RenderTemplate presentation is ready to display. 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::sampleApplications::common::TemplateRuntimePresentationAdapterObserverInterface.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0