![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <TemplateRuntimePresentationAdapter.h>
Static Public Member Functions | |
static std::shared_ptr< TemplateRuntimePresentationAdapter > | create () |
Additional Inherited Members | |
![]() | |
enum | SeekStatus { SeekStatus::SEEK_START, SeekStatus::SEEK_COMPLETE } |
Enum representing Seek activities. More... | |
This class interprets the Template Runtime contract for user interface.
|
virtualdefault |
Destructor
void alexaClientSDK::sampleApplications::common::TemplateRuntimePresentationAdapter::addTemplateRuntimePresentationAdapterObserver | ( | const std::weak_ptr< TemplateRuntimePresentationAdapterObserverInterface > & | observer | ) |
Registers an observer to the adapter for presentation changes.
observer | Instance of an observer to be notified of any change. |
|
static |
Create an instance of TemplateRuntimePresentationAdapter
TemplateRuntimePresentationAdapter
|
overridevirtual |
Called by the presentation orchestrator to perform custom back navigation on a presentation if supported
id | The identifier for the presentation, as provided when the window was initially requested |
Implements alexaClientSDK::presentationOrchestratorInterfaces::PresentationObserverInterface.
|
overridevirtual |
Used to notify the observer when the AudioPlayer
has a change in PlayerActivity
.
state | The PlayerActivity of the AudioPlayer . |
context | The Context of the AudioPlayer . |
Implements alexaClientSDK::acsdkAudioPlayerInterfaces::AudioPlayerObserverInterface.
|
override |
|
overridevirtual |
Called when the presentation state has changed
id | The identifier for this presentation, as provided when the window was initially requested |
newState | The new presentation state |
Implements alexaClientSDK::presentationOrchestratorInterfaces::PresentationObserverInterface.
void alexaClientSDK::sampleApplications::common::TemplateRuntimePresentationAdapter::removeTemplateRuntimePresentationAdapterObserver | ( | const std::weak_ptr< TemplateRuntimePresentationAdapterObserverInterface > & | observer | ) |
De-registers an observer from the adapter for presentation changes.
observer | Instance of an observer to be removed. |
|
overridevirtual |
Used to notify the observer when a RenderPlayerInfo directive is received. Once called, the client should render the PlayerInfo display card based on the metadata provided in the payload in structured JSON format.
jsonPayload | The payload of the RenderPlayerInfo directive in structured JSON format. |
audioPlayerInfo | Information on the AudioPlayer . |
Implements alexaClientSDK::templateRuntimeInterfaces::TemplateRuntimeObserverInterface.
|
overridevirtual |
Used to notify the observer when a RenderTemplate directive is received. Once called, the client should render the Template display card based on the metadata provided in the payload in structured JSON format.
jsonPayload | The payload of the RenderTemplate directive in structured JSON format. |
Implements alexaClientSDK::templateRuntimeInterfaces::TemplateRuntimeObserverInterface.
void alexaClientSDK::sampleApplications::common::TemplateRuntimePresentationAdapter::setExecutor | ( | std::shared_ptr< avsCommon::utils::threading::Executor > | executor | ) |
Set the executor used as the worker thread
executor | The Executor to set |
void alexaClientSDK::sampleApplications::common::TemplateRuntimePresentationAdapter::setPresentationOrchestrator | ( | std::shared_ptr< presentationOrchestratorInterfaces::PresentationOrchestratorClientInterface > | poClient | ) |
Set the presentation orchestrator
poClient | pointer to the presentation orchestrator |
void alexaClientSDK::sampleApplications::common::TemplateRuntimePresentationAdapter::setRenderPlayerInfoWindowId | ( | const std::string & | renderPlayerInfoWindowId | ) |
Set the window id to use for render player info card presentations managed by the adapter
renderPlayerInfoWindowId | id of the render player info window |
void alexaClientSDK::sampleApplications::common::TemplateRuntimePresentationAdapter::setRenderTemplateWindowId | ( | const std::string & | renderTemplateWindowId | ) |
Set the window id to use for render template card presentations managed by the adapter
renderTemplateWindowId | id of the render template window |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0