![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <LiveViewControllerInterface.h>
Classes | |
struct | Response |
struct | StartLiveViewRequest |
Public Member Functions | |
virtual | ~LiveViewControllerInterface ()=default |
virtual Response | start (std::unique_ptr< StartLiveViewRequest > request)=0 |
virtual Response | stop ()=0 |
virtual Response | setCameraState (CameraState cameraState)=0 |
virtual Configuration | getConfiguration ()=0 |
virtual bool | addObserver (std::weak_ptr< LiveViewControllerObserverInterface > observer)=0 |
virtual void | removeObserver (std::weak_ptr< LiveViewControllerObserverInterface > observer)=0 |
The LiveViewControllerInterface
carries out camera live view actions such as starting or stopping a live stream.
|
virtualdefault |
Virtual destructor to assure proper cleanup of derived types.
|
pure virtual |
Adds a LiveViewControllerObserverInterface
observer.
observer | The observer which to callback. |
|
pure virtual |
Returns the LiveViewController configuration.
Configuration
object that contains the supported display modes, overlay types and overlay positions. Implemented in alexaClientSDK::alexaLiveViewController::test::MockAlexaLiveViewControllerInterface, and alexaClientSDK::sampleApplications::ipcServerSampleApp::liveViewController::LiveViewControllerPresentationAdapter.
|
pure virtual |
Removes an observer of LiveViewControllerObserverInterface
.
observer | The observer which to callback. |
|
pure virtual |
Update the camera state based on the LiveViewController interaction with other components.
cameraState | Incoming camera state. |
LiveViewControllerInterface::Response.type
should return SUCCESS if no errors were encountered. Otherwise, LiveViewControllerInterface::Response.type
should contain the corresponding error code along with a log message in LiveViewControllerInterface::Response.errorMessage
. Implemented in alexaClientSDK::alexaLiveViewController::test::MockAlexaLiveViewControllerInterface, and alexaClientSDK::sampleApplications::ipcServerSampleApp::liveViewController::LiveViewControllerPresentationAdapter.
|
pure virtual |
Start camera live view stream based on the user request.
request | The request for the StartLiveView directive. |
LiveViewControllerInterface::Response.type
should return SUCCESS if no errors were encountered. Otherwise, LiveViewControllerInterface::Response.type
should contain the corresponding error code along with a log message in LiveViewControllerInterface::Response.errorMessage
. Implemented in alexaClientSDK::alexaLiveViewController::test::MockAlexaLiveViewControllerInterface.
|
pure virtual |
Stop camera live view stream.
LiveViewControllerInterface::Response.type
should return SUCCESS if no errors were encountered. Otherwise, LiveViewControllerInterface::Response.type
should contain the corresponding error code along with a log message in LiveViewControllerInterface::Response.errorMessage
. Implemented in alexaClientSDK::alexaLiveViewController::test::MockAlexaLiveViewControllerInterface, and alexaClientSDK::sampleApplications::ipcServerSampleApp::liveViewController::LiveViewControllerPresentationAdapter.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0