![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <APLViewhostObserverInterface.h>
Public Member Functions | |
virtual | ~APLViewhostObserverInterface ()=default |
virtual void | onCommandExecutionComplete (const std::string &token, APLClient::AplCommandExecutionEvent event, const std::string &message)=0 |
virtual void | onRenderDocumentComplete (const std::string &token, bool result, const std::string &error, const std::chrono::steady_clock::time_point ×tamp)=0 |
virtual void | onSendEvent (const std::string &token, const std::string &arguments, const std::string &components, const std::string &source)=0 |
virtual void | onVisualContextAvailable (const unsigned int requestToken, const std::string &token, const std::string &version, const std::string &visualContext, const std::string &datasourceContext) |
virtual void | onDataSourceUpdateComplete (const std::string &token, bool result, const std::string &error) |
virtual void | onDataSourceFetch (const std::string &token, const std::string &dataSourceType, const std::string &payload) |
virtual void | onRuntimeError (const std::string &token, const std::string &payload) |
virtual void | onDocumentFinished (const std::string &token) |
virtual void | onOpenURL (const std::string &token, const std::string &url) |
virtual void | onDocumentCleared (const std::string &token) |
virtual void | onSetDocumentIdleTimeout (const std::string &token, const std::chrono::milliseconds &timeout)=0 |
Observer interface used for callbacks from the APL Viewhost implementation.
|
virtualdefault |
Destructor
|
pure virtual |
Callback when command execution is complete.
token | the presentation token corresponding to the document being executed |
event | the command execution event. |
message | the execute command completion message. |
Implemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::APLDocumentSession.
|
inlinevirtual |
Callback when document requires a data source update
token | the presentation token corresponding to the document requiring the update |
dataSourceType | the data source type requiring update |
payload | The payload of the fetch request |
Reimplemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::APLDocumentSession.
|
inlinevirtual |
Callback when data source update is complete.
token | the presentation token corresponding to the document being updated |
result | true if successful, false otherwise |
error | error string if available |
Reimplemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::APLDocumentSession.
|
inlinevirtual |
Callback when a document has been cleared
token | the presentation of the cleared document |
Reimplemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::APLDocumentSession.
|
inlinevirtual |
Callback when document is no longer displayed
token | the presentation token corresponding to the document encountering the error |
Reimplemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::APLDocumentSession.
|
inlinevirtual |
Callback when an open URL command occurs
token | the presentation token |
url | the url to open |
Reimplemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::APLDocumentSession.
|
pure virtual |
Callback when render document is complete.
token | the presentation token corresponding to the document being rendered |
result | true if successful, false otherwise |
timestamp | The timestamp at which the document was rendered |
Implemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::APLDocumentSession.
|
inlinevirtual |
Callback when document receives a runtime error
token | the presentation token corresponding to the document encountering the error |
payload | The payload of the error |
Reimplemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::APLDocumentSession.
|
pure virtual |
Callback for send event request
token | the presentation token corresponding to the document sending the event |
arguments | Arguments array of SendEvent command |
components | Object containing the component of the SendEvent command |
source | Object detailing component which generated the command |
Implemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::APLDocumentSession.
|
pure virtual |
Callback when a document timeout needs to be updated
token | the presentation token |
timeout | updated timeout value |
Implemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::APLDocumentSession.
|
inlinevirtual |
callback when a new visual context is available
requestToken | token which was provided with the original visual context request |
token | the presentation token corresponding to the document providing the context. |
version | the version of the UI component on the device. |
visualContext | serialized visual context |
datasourceContext | serialized datasource context |
Reimplemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::APLDocumentSession.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0