AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <AplLiveViewExtension.h>
Public Member Functions | |
AplLiveViewExtension (std::shared_ptr< AplLiveViewExtensionObserverInterface > observer) | |
~AplLiveViewExtension ()=default | |
void | setCameraState (const std::string &cameraState) |
void | setCameraMicrophoneState (bool enabled) |
void | setAsrProfile (const std::string &asrProfile) |
void | onCameraFirstFrameRendered () |
void | onCameraCleared () |
AplCoreExtensionInterface Functions | |
std::string | getUri () override |
apl::Object | getEnvironment () override |
std::list< apl::ExtensionCommandDefinition > | getCommandDefinitions () override |
std::list< apl::ExtensionEventHandler > | getEventHandlers () override |
std::unordered_map< std::string, apl::LiveObjectPtr > | getLiveDataObjects () override |
void | applySettings (const apl::Object &settings) override |
AplCoreExtensionEventCallbackInterface Functions | |
void | onExtensionEvent (const std::string &uri, const std::string &name, const apl::Object &source, const apl::Object ¶ms, unsigned int event, std::shared_ptr< AplCoreExtensionEventCallbackResultInterface > resultCallback) override |
An APL Extension designed for communication with a Camera
|
explicit |
Constructor
|
default |
|
override |
|
override |
|
override |
|
override |
|
override |
|
override |
void alexaClientSDK::sampleApplications::ipcServerSampleApp::extensions::liveView::AplLiveViewExtension::onCameraCleared | ( | ) |
Informs the APL document that the camera has been cleared and is no longer displayed.
void alexaClientSDK::sampleApplications::ipcServerSampleApp::extensions::liveView::AplLiveViewExtension::onCameraFirstFrameRendered | ( | ) |
Informs the APL document that the first frame of the camera has rendered.
|
override |
void alexaClientSDK::sampleApplications::ipcServerSampleApp::extensions::liveView::AplLiveViewExtension::setAsrProfile | ( | const std::string & | asrProfile | ) |
Informs the APL document of the current ASR Profile for the device relative to audio input. Used to determine UI state and display characteristics. See: https://developer.amazon.com/en-US/docs/alexa/alexa-voice-service/audio-hardware-configurations.html
asrProfile | the current asrProfile for the device. |
void alexaClientSDK::sampleApplications::ipcServerSampleApp::extensions::liveView::AplLiveViewExtension::setCameraMicrophoneState | ( | bool | enabled | ) |
Informs the APL document of changes in camera microphone state.
enabled | true if camera microphone is enabled and unmuted. |
void alexaClientSDK::sampleApplications::ipcServerSampleApp::extensions::liveView::AplLiveViewExtension::setCameraState | ( | const std::string & | cameraState | ) |
Informs the APL document of changes in camera state
cameraState | enumerated |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0