AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
APLDocumentSessionInterface.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_APLDOCUMENTSESSIONINTERFACE_H_
17 #define ACSDK_APLCAPABILITYCOMMONINTERFACES_APLDOCUMENTSESSIONINTERFACE_H_
18 
19 #include <chrono>
20 #include <string>
21 
24 
25 #include "PresentationSession.h"
26 #include "PresentationOptions.h"
27 
28 namespace alexaClientSDK {
29 namespace aplCapabilityCommonInterfaces {
30 
38 public:
42  virtual ~APLDocumentSessionInterface() = default;
43 
47  virtual void clearDocument() = 0;
48 
53  virtual void executeCommands(const std::string& commands) = 0;
54 
60  virtual void dataSourceUpdate(const std::string& sourceType, const std::string& payload) = 0;
61 
65  virtual void interruptCommandSequence() = 0;
66 
71  virtual void provideDocumentContext(const avsCommon::sdkInterfaces::ContextRequestToken stateRequestToken) = 0;
72 
77  virtual void requestForeground() = 0;
78 
84  virtual void updateTimeout(std::chrono::milliseconds timeout) = 0;
85 
89  virtual void stopTimeout() = 0;
90 
94  virtual void resetTimeout() = 0;
95 
101 
106  virtual PresentationToken getToken() const = 0;
107 
112  virtual bool isForegroundFocused() = 0;
113 };
114 
115 } // namespace aplCapabilityCommonInterfaces
116 } // namespace alexaClientSDK
117 
118 #endif // ACSDK_APLCAPABILITYCOMMONINTERFACES_APLDOCUMENTSESSIONINTERFACE_H_
::std::string string
Definition: gtest-port.h:1097
virtual void updateLifespan(presentationOrchestratorInterfaces::PresentationLifespan lifespan)=0
unsigned int ContextRequestToken
Alias for the token used to identify a context request.
Definition: ContextRequestToken.h:23
virtual void updateTimeout(std::chrono::milliseconds timeout)=0
std::string PresentationToken
Alias for the token used by APL directives.
Definition: PresentationToken.h:22
virtual void dataSourceUpdate(const std::string &sourceType, const std::string &payload)=0
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
virtual void provideDocumentContext(const avsCommon::sdkInterfaces::ContextRequestToken stateRequestToken)=0
PresentationLifespan
Definition: PresentationTypes.h:27

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