AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <LiveViewControllerPresentationAdapter.h>
Static Public Member Functions | |
static std::shared_ptr< LiveViewControllerPresentationAdapter > | create (const std::shared_ptr< ipc::IPCHandlerRegistrationInterface > &ipcHandlerRegistrar, const std::shared_ptr< AplClientBridge > &aplClientBridge) |
Static Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::AudioInputProcessorObserverInterface | |
static std::string | stateToString (State state) |
SpeechInteractionHandlerInterface Methods | |
std::future< bool > | notifyOfWakeWord (capabilityAgents::aip::AudioProvider wakeWordAudioProvider, avsCommon::avs::AudioInputStream::Index beginIndex, avsCommon::avs::AudioInputStream::Index endIndex, std::string keyword, std::chrono::steady_clock::time_point startOfSpeechTimestamp, std::shared_ptr< const std::vector< char >> KWDMetadata=nullptr) override |
Pointer to the PresentationInterface presentation association. More... | |
std::future< bool > | notifyOfTapToTalk (capabilityAgents::aip::AudioProvider tapToTalkAudioProvider, avsCommon::avs::AudioInputStream::Index beginIndex=capabilityAgents::aip::AudioInputProcessor::INVALID_INDEX, std::chrono::steady_clock::time_point startOfSpeechTimestamp=std::chrono::steady_clock::now()) override |
Pointer to the PresentationInterface presentation association. More... | |
std::future< bool > | notifyOfHoldToTalkStart (capabilityAgents::aip::AudioProvider holdToTalkAudioProvider, std::chrono::steady_clock::time_point startOfSpeechTimestamp=std::chrono::steady_clock::now(), avsCommon::avs::AudioInputStream::Index beginIndex=capabilityAgents::aip::AudioInputProcessor::INVALID_INDEX) override |
Pointer to the PresentationInterface presentation association. More... | |
std::future< bool > | notifyOfHoldToTalkEnd () override |
Pointer to the PresentationInterface presentation association. More... | |
std::future< bool > | notifyOfTapToTalkEnd () override |
Pointer to the PresentationInterface presentation association. More... | |
void | setPresentationOrchestrator (std::shared_ptr< presentationOrchestratorInterfaces::PresentationOrchestratorClientInterface > poClient) |
} More... | |
void | setInteractionManager (std::shared_ptr< common::InteractionManager > interactionManager) |
void | handleSetCameraMicrophoneState (bool enabled) |
Additional Inherited Members | |
Public Types inherited from alexaClientSDK::avsCommon::sdkInterfaces::AudioInputProcessorObserverInterface | |
enum | State { State::IDLE, State::EXPECTING_SPEECH, State::RECOGNIZING, State::BUSY } |
The different states the AudioInputProcessor can be in. More... | |
This class interprets the LiveViewController contract for user interface.
|
override |
name LiveViewCameraHandlerInterface methods
|
overridevirtual |
name LiveViewCameraHandlerInterface methods
Implements alexaClientSDK::sampleApplications::ipcServerSampleApp::ipc::LiveViewCameraHandlerInterface.
|
overridevirtual |
name LiveViewCameraHandlerInterface methods
Implements alexaClientSDK::sampleApplications::ipcServerSampleApp::ipc::LiveViewCameraHandlerInterface.
|
static |
Create an instance of LiveViewControllerPresentationAdapter
.
ipcHandlerRegistrar | Pointer to the ipc::IPCHandlerRegistrationInterface . |
aplClientBridge | Pointer to the AplClientBridge to support live view APL extension. |
LiveViewControllerPresentationAdapter
.
|
overridevirtual |
name LiveViewCameraHandlerInterface methods
Implements alexaClientSDK::alexaLiveViewControllerInterfaces::LiveViewControllerInterface.
|
overridevirtual |
Used to notify the observer when the extension has issued a request to exit the camera. The observer should stop the active camera.
|
overridevirtual |
Used to notify the observer when the extension has issued a request to open the camera microphone. The observer should open the microphone for communication over the camera.
enabled | true if requesting to enable the microphone. |
void alexaClientSDK::sampleApplications::ipcServerSampleApp::liveViewController::LiveViewControllerPresentationAdapter::handleSetCameraMicrophoneState | ( | bool | enabled | ) |
Handle setting microphone state for live view camera use cases.
enabled | whether microphone should be turned on for live view camera experiences or not. |
|
overridevirtual |
Pointer to the PresentationInterface
presentation association.
Implements alexaClientSDK::avsCommon::sdkInterfaces::SpeechInteractionHandlerInterface.
|
overridevirtual |
Pointer to the PresentationInterface
presentation association.
Implements alexaClientSDK::avsCommon::sdkInterfaces::SpeechInteractionHandlerInterface.
|
overridevirtual |
Pointer to the PresentationInterface
presentation association.
Implements alexaClientSDK::avsCommon::sdkInterfaces::SpeechInteractionHandlerInterface.
|
overridevirtual |
Pointer to the PresentationInterface
presentation association.
Implements alexaClientSDK::avsCommon::sdkInterfaces::SpeechInteractionHandlerInterface.
|
overridevirtual |
Pointer to the PresentationInterface
presentation association.
Implements alexaClientSDK::avsCommon::sdkInterfaces::SpeechInteractionHandlerInterface.
|
overridevirtual |
This function is called when the active ASRProfile
changes.
profile | The string representation of the active ASRProfile . Use the associated getASRProfile to retrieve the ASRProfile value. |
Reimplemented from alexaClientSDK::avsCommon::sdkInterfaces::AudioInputProcessorObserverInterface.
|
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.
|
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.
|
overridevirtual |
This function is called when the state of the observed AudioInputProcessor
changes. This function will block processing of audio inputs, so implementations should return quickly.
state | The new state of the AudioInputProcessor . |
Implements alexaClientSDK::avsCommon::sdkInterfaces::AudioInputProcessorObserverInterface.
|
override |
name LiveViewCameraHandlerInterface methods
|
overridevirtual |
name LiveViewCameraHandlerInterface methods
Implements alexaClientSDK::alexaLiveViewControllerInterfaces::LiveViewControllerInterface.
void alexaClientSDK::sampleApplications::ipcServerSampleApp::liveViewController::LiveViewControllerPresentationAdapter::setInteractionManager | ( | std::shared_ptr< common::InteractionManager > | interactionManager | ) |
Set the interaction manager
interactionManager | pointer to the interaction manager. |
void alexaClientSDK::sampleApplications::ipcServerSampleApp::liveViewController::LiveViewControllerPresentationAdapter::setPresentationOrchestrator | ( | std::shared_ptr< presentationOrchestratorInterfaces::PresentationOrchestratorClientInterface > | poClient | ) |
}
Set the presentation orchestrator
poClient | pointer to the presentation orchestrator |
|
override |
}
name LiveViewControllerInterface methods
|
overridevirtual |
name LiveViewCameraHandlerInterface methods
Implements alexaClientSDK::alexaLiveViewControllerInterfaces::LiveViewControllerInterface.
|
overridevirtual |
name LiveViewCameraHandlerInterface methods
Implements alexaClientSDK::sampleApplications::ipcServerSampleApp::ipc::LiveViewCameraHandlerInterface.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0