![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <WindowManagerHandler.h>
Public Member Functions | |
void | dispatchSetVisualCharacteristics (const avsCommon::utils::Optional< std::string > &displayCharacteristicOpt, const avsCommon::utils::Optional< std::string > &interactionModesOpt, const avsCommon::utils::Optional< std::string > &windowTemplatesOpt) |
void | dispatchClearWindow (const std::string &windowId) |
void | registerHandlers () |
Register this handler for its namespace and its methods for the corresponding namespace functions. More... | |
RequiresShutdown Functions | |
void | doShutdown () override |
![]() | |
void | invokeMethod (const std::string &methodName, const std::string &message) |
~IPCHandlerBase () | |
![]() | |
RequiresShutdown (const std::string &name) | |
virtual | ~RequiresShutdown () |
Destructor. More... | |
const std::string & | name () const |
void | shutdown () |
bool | isShutdown () const |
Static Public Member Functions | |
static std::shared_ptr< WindowManagerHandler > | create (std::shared_ptr< IPCHandlerRegistrationInterface > ipcHandlerRegistrar, std::shared_ptr< WindowManagerHandlerInterface > windowManagerComponent) |
Additional Inherited Members | |
![]() | |
using | IPCMessageHandler = std::function< void(const std::string &)> |
Alias for the message handler function. More... | |
![]() | |
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) |
![]() | |
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 WindowManager namespace messages coming from the IPC client.
|
static |
Create an instance of WindowManagerHandler
ipcHandlerRegistrar | Used to register WindowManagerHandler . |
windowManagerComponent | Handles the parsed WindowManager payloads. |
WindowManagerHandler
void alexaClientSDK::sampleApplications::ipcServerSampleApp::ipc::WindowManagerHandler::dispatchClearWindow | ( | const std::string & | windowId | ) |
Informs the IPC client to clear the content of the given window.
windowId | Id of the window to clear in the IPC client. |
void alexaClientSDK::sampleApplications::ipcServerSampleApp::ipc::WindowManagerHandler::dispatchSetVisualCharacteristics | ( | const avsCommon::utils::Optional< std::string > & | displayCharacteristicOpt, |
const avsCommon::utils::Optional< std::string > & | interactionModesOpt, | ||
const avsCommon::utils::Optional< std::string > & | windowTemplatesOpt | ||
) |
Sends a setVisualCharacteristics IPC message to the IPC client.
displayCharacteristicOpt | Serialized configuration object for the Alexa.Display capability (optional). |
interactionModesOpt | Serialized configuration object for the Alexa.InteractionMode capability (optional). |
windowTemplatesOpt | Serialized configuration object for the Alexa.DisplayWindow capability (optional). |
|
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::WindowManagerHandler::registerHandlers | ( | ) |
Register this handler for its namespace and its methods for the corresponding namespace functions.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0