AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
APLRuntimeInterfaceImpl.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 ALEXA_CLIENT_SDK_LIBIPCSERVERSAMPLEAPP_INCLUDE_IPCSERVERSAMPLEAPP_ALEXAPRESENTATION_APLRUNTIMEINTERFACEIMPL_H_
17 #define ALEXA_CLIENT_SDK_LIBIPCSERVERSAMPLEAPP_INCLUDE_IPCSERVERSAMPLEAPP_ALEXAPRESENTATION_APLRUNTIMEINTERFACEIMPL_H_
18 
19 #include <mutex>
20 
26 
28 
29 namespace alexaClientSDK {
30 namespace sampleApplications {
31 namespace ipcServerSampleApp {
32 
34 public:
39 
46  static std::shared_ptr<APLRuntimeInterfaceImpl> create(const APLViewhostInterfacePtr& runtime);
47 
50  void renderDocument(
51  const std::string& document,
52  const std::string& data,
53  const aplCapabilityCommonInterfaces::PresentationSession& presentationSession,
54  const aplCapabilityCommonInterfaces::PresentationOptions& presentationOptions,
55  std::shared_ptr<aplCapabilityCommonInterfaces::APLDocumentObserverInterface> observer) override;
56 
57  std::string getMaxAPLVersion() const override;
59 
60  void setDefaultWindowId(const std::string& windowId);
61 
63  std::shared_ptr<presentationOrchestratorInterfaces::PresentationOrchestratorClientInterface> poClient);
64 
65  std::shared_ptr<APLDocumentSession> createDocumentSession(
66  const std::string& document,
67  const std::string& data,
68  const aplCapabilityCommonInterfaces::PresentationSession& presentationSession,
69  const aplCapabilityCommonInterfaces::PresentationOptions& presentationOptions,
70  std::shared_ptr<aplCapabilityCommonInterfaces::APLDocumentObserverInterface> observer,
71  bool hasPresentationAssociation);
72 
73 private:
80 
82  APLViewhostInterfacePtr m_viewhost;
83 
85  std::shared_ptr<presentationOrchestratorInterfaces::PresentationOrchestratorClientInterface>
86  m_presentationOrchestratorClient;
87 
89  std::string m_defaultWindowId;
90 
92  std::mutex m_mutex;
93 };
94 } // namespace ipcServerSampleApp
95 } // namespace sampleApplications
96 } // namespace alexaClientSDK
97 
98 #endif // ALEXA_CLIENT_SDK_LIBIPCSERVERSAMPLEAPP_INCLUDE_IPCSERVERSAMPLEAPP_ALEXAPRESENTATION_APLRUNTIMEINTERFACEIMPL_H_
void renderDocument(const std::string &document, const std::string &data, const aplCapabilityCommonInterfaces::PresentationSession &presentationSession, const aplCapabilityCommonInterfaces::PresentationOptions &presentationOptions, std::shared_ptr< aplCapabilityCommonInterfaces::APLDocumentObserverInterface > observer) override
void setPresentationOrchestrator(std::shared_ptr< presentationOrchestratorInterfaces::PresentationOrchestratorClientInterface > poClient)
::std::string string
Definition: gtest-port.h:1097
std::shared_ptr< APLViewhostInterface > APLViewhostInterfacePtr
Definition: APLViewhostInterface.h:152
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
static std::shared_ptr< APLRuntimeInterfaceImpl > create(const APLViewhostInterfacePtr &runtime)
std::shared_ptr< APLDocumentSession > createDocumentSession(const std::string &document, const std::string &data, const aplCapabilityCommonInterfaces::PresentationSession &presentationSession, const aplCapabilityCommonInterfaces::PresentationOptions &presentationOptions, std::shared_ptr< aplCapabilityCommonInterfaces::APLDocumentObserverInterface > observer, bool hasPresentationAssociation)

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