AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
APLCapabilityAgentObserverInterface.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 #ifndef ACSDK_APLCAPABILITYCOMMONINTERFACES_APLCAPABILITYAGENTOBSERVERINTERFACE_H_
16 #define ACSDK_APLCAPABILITYCOMMONINTERFACES_APLCAPABILITYAGENTOBSERVERINTERFACE_H_
17 
18 #include <chrono>
19 #include <string>
20 
21 #include "PresentationSession.h"
23 #include "APLTimeoutType.h"
24 #include "PresentationToken.h"
25 
26 namespace alexaClientSDK {
27 namespace aplCapabilityCommonInterfaces {
32 public:
36  virtual ~APLCapabilityAgentObserverInterface() = default;
37 
59  virtual void onRenderDocument(
60  const std::string& document,
61  const std::string& datasource,
62  const PresentationToken& token,
63  const std::string& windowId,
64  const APLTimeoutType timeoutType,
65  const std::string& interfaceName,
66  const std::string& supportedViewports,
67  const PresentationSession& presentationSession,
68  const std::chrono::steady_clock::time_point& receiveTime,
69  std::shared_ptr<APLCapabilityAgentInterface> agent) = 0;
70 
77  virtual void onExecuteCommands(const std::string& jsonPayload, const PresentationToken& token) = 0;
78 
86  virtual void onDataSourceUpdate(
87  const std::string& sourceType,
88  const std::string& jsonPayload,
89  const PresentationToken& token) = 0;
90 
96  virtual void onShowDocument(const PresentationToken& token) = 0;
97 };
98 
99 } // namespace aplCapabilityCommonInterfaces
100 } // namespace alexaClientSDK
101 
102 #endif // ACSDK_APLCAPABILITYCOMMONINTERFACES_APLCAPABILITYAGENTOBSERVERINTERFACE_H_
APLTimeoutType
Definition: APLTimeoutType.h:30
::std::string string
Definition: gtest-port.h:1097
virtual void onExecuteCommands(const std::string &jsonPayload, const PresentationToken &token)=0
std::string PresentationToken
Alias for the token used by APL directives.
Definition: PresentationToken.h:22
virtual void onDataSourceUpdate(const std::string &sourceType, const std::string &jsonPayload, const PresentationToken &token)=0
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
virtual void onRenderDocument(const std::string &document, const std::string &datasource, const PresentationToken &token, const std::string &windowId, const APLTimeoutType timeoutType, const std::string &interfaceName, const std::string &supportedViewports, const PresentationSession &presentationSession, const std::chrono::steady_clock::time_point &receiveTime, std::shared_ptr< APLCapabilityAgentInterface > agent)=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