#include <PresentationOrchestratorStateTrackerInterface.h>
The PresentationOrchestratorStateTrackerInterface tracks windows and presentations, the active presentation state will be reported to the VisualActivityTracker in addition to any registered observers.
◆ ~PresentationOrchestratorStateTrackerInterface()
virtual alexaClientSDK::presentationOrchestratorInterfaces::PresentationOrchestratorStateTrackerInterface::~PresentationOrchestratorStateTrackerInterface |
( |
| ) |
|
|
virtualdefault |
◆ acquireWindow()
virtual void alexaClientSDK::presentationOrchestratorInterfaces::PresentationOrchestratorStateTrackerInterface::acquireWindow |
( |
const std::string & |
clientId, |
|
|
const std::string & |
windowId, |
|
|
PresentationMetadata |
metadata |
|
) |
| |
|
pure virtual |
Acquires, or reacquires the given window ID To ensure accurate state reporting it is recommended this function is called whenever a window is foregrounded
- Parameters
-
clientId | The identifier for the client making this request |
windowId | The window ID which is being acquired |
metadata | The metadata for this request |
◆ addStateObserver()
Adds an observer to be notified of state changes
- Parameters
-
observer | The observer to add |
◆ addWindow()
Adds a window instance to the orchestrator
- Parameters
-
window | The window instance information |
- Returns
- true if the window was added, false if the addition failed
◆ addWindowObserver()
Adds an observer to be notified of window changes
- Parameters
-
observer | The observer to add |
◆ getFocusedInterface()
virtual std::string alexaClientSDK::presentationOrchestratorInterfaces::PresentationOrchestratorStateTrackerInterface::getFocusedInterface |
( |
| ) |
|
|
pure virtual |
Retrieve the interface for the current focused presentation
- Returns
- The interface, or an empty string if nothing is active
◆ getFocusedWindowId()
virtual std::string alexaClientSDK::presentationOrchestratorInterfaces::PresentationOrchestratorStateTrackerInterface::getFocusedWindowId |
( |
| ) |
|
|
pure virtual |
Retrieve the current focused windowId
- Returns
- The window ID, or an empty string if nothing is active
◆ getWindowInformation()
virtual std::vector<PresentationOrchestratorWindowInfo> alexaClientSDK::presentationOrchestratorInterfaces::PresentationOrchestratorStateTrackerInterface::getWindowInformation |
( |
| ) |
|
|
pure virtual |
Retrieves information for all window instances tracked by orchestrator
- Returns
- vector of window information
◆ releaseDeviceInterface()
virtual void alexaClientSDK::presentationOrchestratorInterfaces::PresentationOrchestratorStateTrackerInterface::releaseDeviceInterface |
( |
| ) |
|
|
pure virtual |
Releases the device interface which was previously set with setDeviceInterface
◆ releaseWindow()
virtual void alexaClientSDK::presentationOrchestratorInterfaces::PresentationOrchestratorStateTrackerInterface::releaseWindow |
( |
const std::string & |
clientId, |
|
|
const std::string & |
windowId |
|
) |
| |
|
pure virtual |
Releases a previously acquired window
- Parameters
-
clientId | The identifier for the client making this request |
windowId | The window ID which is being released |
◆ removeStateObserver()
Removes an observer that was previously added
- Parameters
-
observer | The observer to remove |
◆ removeWindow()
virtual void alexaClientSDK::presentationOrchestratorInterfaces::PresentationOrchestratorStateTrackerInterface::removeWindow |
( |
const std::string & |
windowId | ) |
|
|
pure virtual |
Removes a window instance from this orchestrator
- Parameters
-
windowId | The id of the window to remove |
◆ removeWindowObserver()
Removes a window observer that was previously added
- Parameters
-
observer | The observer to remove |
◆ setDeviceInterface()
virtual void alexaClientSDK::presentationOrchestratorInterfaces::PresentationOrchestratorStateTrackerInterface::setDeviceInterface |
( |
std::string |
interfaceName | ) |
|
|
pure virtual |
Sets the interface which will be reported if no other clients have acquired a window
- Parameters
-
interfaceName | The interface to report in VisualActivityTracker |
◆ setWindows()
virtual void alexaClientSDK::presentationOrchestratorInterfaces::PresentationOrchestratorStateTrackerInterface::setWindows |
( |
const std::vector< PresentationOrchestratorWindowInstance > & |
windows | ) |
|
|
pure virtual |
Sets the window instances that the orchestrator should track. Will remove/update any existing orchestrator windows that are not in the set or have changed. Will add any window instances in the set that are not currently handled by orchestrator.
- Parameters
-
windows | Array of window instances |
◆ updatePresentationMetadata()
virtual void alexaClientSDK::presentationOrchestratorInterfaces::PresentationOrchestratorStateTrackerInterface::updatePresentationMetadata |
( |
const std::string & |
clientId, |
|
|
const std::string & |
windowId, |
|
|
PresentationMetadata |
metadata |
|
) |
| |
|
pure virtual |
Updates the presentation metadata, a previous acquireWindow call should already have been made This function does not move this client to the front of the window stack
- Parameters
-
clientId | The identifier for the client making this request |
windowId | The window ID to update |
metadata | The new metadata |
◆ updateWindow()
Updates an existing window instance
- Parameters
-
window | The window instance information, the window id must already exist |
The documentation for this class was generated from the following file:
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0