AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
APLDocumentObserverInterface.h
Go to the documentation of this file.
1 /*
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at
7  *
8  * http://aws.amazon.com/apache2.0/
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */
15 
16 #ifndef ACSDK_APLCAPABILITYCOMMONINTERFACES_APLDOCUMENTOBSERVERINTERFACE_H_
17 #define ACSDK_APLCAPABILITYCOMMONINTERFACES_APLDOCUMENTOBSERVERINTERFACE_H_
18 
19 #include <memory>
20 #include <string>
21 
24 
27 #include "APLEventPayload.h"
28 
29 namespace alexaClientSDK {
30 namespace aplCapabilityCommonInterfaces {
31 
37 public:
41  virtual ~APLDocumentObserverInterface() = default;
42 
50  virtual void onAPLDocumentSessionAvailable(
51  const PresentationSession& presentationSession,
52  const PresentationToken& token,
53  std::unique_ptr<APLDocumentSessionInterface>&& session) = 0;
54 
59  virtual void onDocumentFinished(const PresentationToken& token) = 0;
60 
66  virtual void onActiveDocumentChanged(const PresentationToken& token, const PresentationSession& session) = 0;
67 
75  virtual void onRenderDocumentComplete(
76  const PresentationToken& token,
77  bool result,
78  const std::string& error,
79  const std::chrono::steady_clock::time_point& timestamp) = 0;
80 
87  virtual void onCommandExecutionComplete(
88  const PresentationToken& token,
90  const std::string& error) = 0;
91 
98  virtual void onDataSourceUpdateComplete(const PresentationToken& token, bool result, const std::string& error) = 0;
99 
106  virtual void onSendEvent(const aplEventPayload::UserEvent& payload) = 0;
107 
117  virtual void onVisualContextAvailable(
119  const aplEventPayload::VisualContext& context) = 0;
120 
127  virtual void onDataSourceFetch(const aplEventPayload::DataSourceFetch& payload) = 0;
128 
135  virtual void onRuntimeError(const aplEventPayload::RuntimeError& payload) = 0;
136 
141  virtual void onSessionEnded(const PresentationSession& presentationSession) = 0;
142 
148  virtual void onActivityEvent(
149  const PresentationToken& token,
151 };
152 
153 } // namespace aplCapabilityCommonInterfaces
154 } // namespace alexaClientSDK
155 
156 #endif // ACSDK_APLCAPABILITYCOMMONINTERFACES_APLDOCUMENTOBSERVERINTERFACE_H_
::std::string string
Definition: gtest-port.h:1097
virtual void onDataSourceFetch(const aplEventPayload::DataSourceFetch &payload)=0
unsigned int ContextRequestToken
Alias for the token used to identify a context request.
Definition: ContextRequestToken.h:23
virtual void onRuntimeError(const aplEventPayload::RuntimeError &payload)=0
virtual void onSessionEnded(const PresentationSession &presentationSession)=0
virtual void onAPLDocumentSessionAvailable(const PresentationSession &presentationSession, const PresentationToken &token, std::unique_ptr< APLDocumentSessionInterface > &&session)=0
std::string PresentationToken
Alias for the token used by APL directives.
Definition: PresentationToken.h:22
virtual void onSendEvent(const aplEventPayload::UserEvent &payload)=0
virtual void onDocumentFinished(const PresentationToken &token)=0
virtual void onActiveDocumentChanged(const PresentationToken &token, const PresentationSession &session)=0
virtual void onActivityEvent(const PresentationToken &token, const avsCommon::sdkInterfaces::GUIActivityEvent &event)=0
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
GUIActivityEvent
Enumeration of activity events used to indicate the state of a GUI.
Definition: GUIActivityEvent.h:27
virtual void onDataSourceUpdateComplete(const PresentationToken &token, bool result, const std::string &error)=0
virtual void onCommandExecutionComplete(const PresentationToken &token, APLCommandExecutionEvent result, const std::string &error)=0
virtual void onRenderDocumentComplete(const PresentationToken &token, bool result, const std::string &error, const std::chrono::steady_clock::time_point &timestamp)=0
APLCommandExecutionEvent
Enumeration of APL Command Execution Events that can be reported to the APL capability agent...
Definition: APLCommandExecutionEvent.h:27
virtual void onVisualContextAvailable(const avsCommon::sdkInterfaces::ContextRequestToken requestToken, const aplEventPayload::VisualContext &context)=0

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0