![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <APLViewhostInterface.h>
Public Member Functions | |
virtual | ~APLViewhostInterface ()=default |
virtual void | addObserver (const APLViewhostObserverInterfacePtr &observer)=0 |
virtual void | removeObserver (const APLViewhostObserverInterfacePtr &observer)=0 |
virtual void | renderDocument (const aplCapabilityCommonInterfaces::PresentationSession &presentationSession, const std::string &token, const std::string &document, const std::string &datasources, const std::string &supportedViewports, const std::string &windowId)=0 |
virtual void | clearDocument () |
virtual void | clearDocument (const std::string &token) |
virtual void | executeCommands (const std::string &commands, const std::string &token)=0 |
virtual void | dataSourceUpdate (const std::string &sourceType, const std::string &data, const std::string &token)=0 |
virtual void | interruptCommandSequence () |
virtual void | interruptCommandSequence (const std::string &token) |
virtual void | onRenderDirectiveReceived (const std::string &token, const std::chrono::steady_clock::time_point &receiveTime) |
virtual std::string | getMaxAPLVersion () const =0 |
virtual void | setMetricRecorder (std::shared_ptr< avsCommon::utils::metrics::MetricRecorderInterface > metricRecorder)=0 |
virtual bool | handleBack (const std::string &windowId)=0 |
![]() | |
virtual | ~VisualStateProviderInterface ()=default |
virtual void | provideState (const PresentationToken &token, const avsCommon::sdkInterfaces::ContextRequestToken stateRequestToken)=0 |
This interface is intended to define a well defined surface for APLCore / APLViewhost integrations.
|
virtualdefault |
Destructor
|
pure virtual |
Adds a viewhost observer
observer | the observer to register |
Implemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::AplClientBridge.
|
inlinevirtual |
Clear APL document
|
inlinevirtual |
Clear APL document
token | token of document to clear |
Reimplemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::AplClientBridge.
|
pure virtual |
Update the data source payload for a given APL document
sourceType | APL spec source type for data update |
data | JSON string containing new data payload associated with APL document |
token | Presentation token to identify document to update |
Implemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::AplClientBridge.
|
pure virtual |
Execute commands referenced in APL document
document | JSON string containing APL command to execute |
token | Presentation token to identify document to execute commands on |
Implemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::AplClientBridge.
|
pure virtual |
Retrieves the maximum APL version supported by this runtime
Implemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::AplClientBridge.
|
pure virtual |
Handle back navigation
windowId | The window ID on which to perform the back action |
Implemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::AplClientBridge.
|
inlinevirtual |
Interrupt active command sequence
|
inlinevirtual |
Interrupt active command sequence
token | token of document to interrupt |
Reimplemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::AplClientBridge.
|
inlinevirtual |
Used for metrics purposes, notifies the APLRuntime of the time when the directive was received
token | token of the document |
receiveTime | The receive time |
Reimplemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::AplClientBridge.
|
pure virtual |
Removes a viewhost observer.
observer | the observer to unregister |
Implemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::AplClientBridge.
|
pure virtual |
Render an APL document with extra associated data payload
presentationSession | The presentation session associated with this renderDocument request |
document | JSON string containing APL document |
data | JSON string containing data payload associated with APL document |
token | Presentation token uniquely identifying the document |
supportedViewports | Viewports supported by this document |
windowId | Target windowId to display the document within |
Implemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::AplClientBridge.
|
pure virtual |
Sets the metrics recorder to be used by the runtime to record and emit metric events.
metricRecorder | Shared pointer to the MetricRecorderInterface |
Implemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::AplClientBridge.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0