![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <GUIClientInterface.h>
Public Types | |
using | GUIToken = uint64_t |
Alias for GUI provided token. More... | |
Public Member Functions | |
virtual | ~GUIClientInterface ()=default |
virtual void | setGUIManager (std::shared_ptr< gui::GUIServerInterface > guiManager)=0 |
virtual bool | acquireFocus (std::string avsInterface, std::string channelName, avsCommon::avs::ContentType contentType, std::shared_ptr< avsCommon::sdkInterfaces::ChannelObserverInterface > channelObserver)=0 |
virtual bool | releaseFocus (std::string avsInterface, std::string channelName, std::shared_ptr< avsCommon::sdkInterfaces::ChannelObserverInterface > channelObserver)=0 |
virtual void | sendMessage (messages::MessageInterface &message)=0 |
virtual bool | finalizeClientInitialization (bool errorState)=0 |
virtual void | handleInitializeAPLRenderers (rapidjson::Document &payload)=0 |
virtual void | handleDisplayMetrics (rapidjson::Document &payload)=0 |
virtual void | handleAplEvent (rapidjson::Document &payload)=0 |
virtual void | handleRenderComplete (rapidjson::Document &payload)=0 |
virtual void | handleLocalRenderDocument (rapidjson::Document &payload)=0 |
virtual void | handleLocalExecuteCommands (rapidjson::Document &payload)=0 |
virtual void | handleLocalClearDocument (rapidjson::Document &payload)=0 |
virtual void | handleOnFocusChangedReceivedConfirmation (GUIToken token)=0 |
virtual void | focusAcquireRequest (const GUIToken token, const std::string &avsInterface, const std::string &channelName, avsCommon::avs::ContentType contentType)=0 |
Internal function to execute. More... | |
virtual void | focusReleaseRequest (const GUIToken token, const std::string &avsInterface, const std::string &channelName)=0 |
Internal function to execute. More... | |
virtual void | setLocales (const std::string &localeStr)=0 |
virtual std::shared_ptr< ipc::IPCRouter > | getIPCRouter ()=0 |
Returns a reference to m_ipcRouter . More... | |
An interface representing the GUI component responsible for rendering display card and for APL.
using alexaClientSDK::sampleApplications::ipcServerSampleApp::gui::GUIClientInterface::GUIToken = uint64_t |
Alias for GUI provided token.
|
virtualdefault |
Destructor
|
pure virtual |
Request audio focus.
avsInterface | The AVS Interface requesting focus. |
channelName | The channel to be requested. |
contentType | The type of content acquiring focus. |
channelObserver | the channelObserver to be notified. |
Implemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::gui::GUIClient.
|
pure virtual |
Finalize the client initialization with the error state so far passed from the caller.
errorState | Error state of the client initialization so far passed by the caller. |
Implemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::gui::GUIClient.
|
pure virtual |
Internal function to execute.
Implemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::gui::GUIClient.
|
pure virtual |
Internal function to execute.
Implemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::gui::GUIClient.
|
pure virtual |
Returns a reference to m_ipcRouter
.
Implemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::gui::GUIClient.
|
pure virtual |
Handle aplEvent message.
payload | The payload retrieved from message holding this event. |
Implemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::gui::GUIClient.
|
pure virtual |
Handle displayMetrics message.
payload | The payload retrieved from message holding this event. |
Implemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::gui::GUIClient.
|
pure virtual |
Handle initialization of APL Renderers based on window and supported extensions reported by GUI app
payload | The payload retrieved from message holding this event. |
Implemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::gui::GUIClient.
|
pure virtual |
Handle Local ClearDocument message.
payload | The payload holding the local clear document directive. |
Implemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::gui::GUIClient.
|
pure virtual |
Handle Local ExecuteCommands message.
payload | The payload holding the local execute commands directive. |
Implemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::gui::GUIClient.
|
pure virtual |
Handle Local RenderDocument message.
payload | The payload holding the local render document directive. |
Implemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::gui::GUIClient.
|
pure virtual |
Handle focus message received confirmation messages.
token | Token field in the focusChangedReport event. |
Implemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::gui::GUIClient.
|
pure virtual |
Handle renderComplete message.
payload | The payload retrieved from message holding this event. |
Implemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::gui::GUIClient.
|
pure virtual |
Release audio focus.
avsInterface | The AVS Interface releasing focus. |
channelName | The channel to be released. |
channelObserver | the channelObserver to be notified. |
Implemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::gui::GUIClient.
|
pure virtual |
Send call state info.
callStateInfo | The call state info. Sends a GUI Message to the server. |
message | The message to be written. |
Implemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::gui::GUIClient.
|
pure virtual |
Set a reference to a GUI Manager
guiManager | Client related operations. |
Implemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::gui::GUIClient.
|
pure virtual |
Informs the IPC Client of changes in supported locales for the SDK.
localeStr | The locale(s) for the device. In single-locale mode, contains one locale string. In multi-locale mode, the first string indicates the primary locale, and any other strings correspond to secondary locales. |
Implemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::gui::GUIClient.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0