![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <IPCAPLAgent.h>
Static Public Member Functions | |
static std::shared_ptr< IPCAPLAgent > | create (std::shared_ptr< gui::GUIClientInterface > guiClient) |
IPC APL Agent used for routing APL runtime events from documents initiated by an IPC client.
|
virtualdefault |
Destructor.
void alexaClientSDK::sampleApplications::ipcServerSampleApp::IPCAPLAgent::addObserver | ( | std::shared_ptr< aplCapabilityCommonInterfaces::APLCapabilityAgentObserverInterface > | observer | ) |
|
overridevirtual |
This function clears last received ExecuteCommands
directive (if it's still active) and mark them as failed.
token | The token. This should be passed in if we are clearing execute commands due to APL-specific trigger (eg. Finish command). This should be left empty if we are clearing due to global triggers (eg. back navigation) |
markAsFailed | Whether to mark the cleared commands as failed. |
Implements alexaClientSDK::aplCapabilityCommonInterfaces::APLCapabilityAgentInterface.
|
static |
Create a IPCAPLAgent
guiClient | A pointer to a GUI Client. |
|
overridevirtual |
This function notifies the APL CA that the active document has been replaced.
token | The new active document token |
session | The new presentation session |
Implements alexaClientSDK::aplCapabilityCommonInterfaces::APLCapabilityAgentInterface.
void alexaClientSDK::sampleApplications::ipcServerSampleApp::IPCAPLAgent::onDocumentDismissed | ( | const std::string & | token | ) |
|
overridevirtual |
This function is called by the clients to provide the visual context to be passed to AVS.
requestToken | The token of the request for which this function is called. This should match the request token provided in VisualStateProviderInterface |
context | The visual state to be passed to AVS. The caller of this function is responsible to pass the payload as it defined in aplEventPayload::VisualContext |
Implements alexaClientSDK::aplCapabilityCommonInterfaces::APLCapabilityAgentInterface.
|
overridevirtual |
The function notifies the CA to initiate a proactive state report
Implements alexaClientSDK::aplCapabilityCommonInterfaces::APLCapabilityAgentInterface.
|
overridevirtual |
Process result of ExecuteCommands directive.
token | request token |
event | the command result as defined in APLCommandExecutionEvent |
error | error message provided in case if result is false |
Implements alexaClientSDK::aplCapabilityCommonInterfaces::APLCapabilityAgentInterface.
|
overridevirtual |
Process result of RenderDocument directive.
token | document presentationToken. |
result | rendering result (true on rendered, false on exception). |
error | error message provided in case if result is false |
Implements alexaClientSDK::aplCapabilityCommonInterfaces::APLCapabilityAgentInterface.
|
overridevirtual |
Record the finish event for currently rendering document
timestamp | The timestamp at which the document was rendered |
Implements alexaClientSDK::aplCapabilityCommonInterfaces::APLCapabilityAgentInterface.
void alexaClientSDK::sampleApplications::ipcServerSampleApp::IPCAPLAgent::removeObserver | ( | std::shared_ptr< aplCapabilityCommonInterfaces::APLCapabilityAgentObserverInterface > | observer | ) |
|
overridevirtual |
Send DataSourceFetchRequest
to AVS
payload | The DataSourceFetchRequest event payload. The caller of this function is responsible to pass the payload as it defined in aplEventPayload::DataSourceFetch . |
Implements alexaClientSDK::aplCapabilityCommonInterfaces::APLCapabilityAgentInterface.
|
overridevirtual |
Send RuntimeError
to AVS
payload | The RuntimeError event payload. The caller of this function is responsible to pass the payload as it defined in aplEventPayload::RuntimeError . |
Implements alexaClientSDK::aplCapabilityCommonInterfaces::APLCapabilityAgentInterface.
|
overridevirtual |
Send UserEvent
to AVS
payload | The UserEvent event payload. The caller of this function is responsible to pass the payload as it defined in aplEventPayload::UserEvent . |
Implements alexaClientSDK::aplCapabilityCommonInterfaces::APLCapabilityAgentInterface.
void alexaClientSDK::sampleApplications::ipcServerSampleApp::IPCAPLAgent::setAPLMaxVersion | ( | const std::string & | APLMaxVersion | ) |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0