![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <ChannelControllerInterface.h>
Classes | |
struct | Response |
Public Member Functions | |
virtual | ~ChannelControllerInterface ()=default |
virtual Response | change (std::unique_ptr< alexaChannelControllerTypes::Channel > channel)=0 |
virtual Response | decrementChannel ()=0 |
virtual Response | incrementChannel ()=0 |
virtual std::unique_ptr< alexaChannelControllerTypes::Channel > | getCurrentChannel ()=0 |
virtual bool | addObserver (std::weak_ptr< ChannelControllerObserverInterface > observer)=0 |
virtual void | removeObserver (std::weak_ptr< ChannelControllerObserverInterface > observer)=0 |
The ChannelControllerInterface
carries out channel controller actions such as changing the channel, and skipping (going to the next or previous) channels.
|
virtualdefault |
Virtual destructor to assure proper cleanup of derived types.
|
pure virtual |
Adds a ChannelControllerObserverInterface
observer.
ChannelControllerObserverInterface
for any change in its property state. This includes notifying the value when the device starts, if it is different from the last reported value.observer | The pointer to the ChannelControllerObserverInterface . |
true
if the object supports observer notification and observer was successfully added; otherwise, return false
Implemented in alexaClientSDK::alexaChannelController::test::MockAlexaChannelControllerInterface.
|
pure virtual |
Changes the channel on the endpoint.
channel | The channel related values such as number, callSign and affiliateCallSign, uri, as well as metadata for the channel like name and image. |
ChannelControllerInterface::Response.type
should return SUCCESS if no errors were encountered. Otherwise, ChannelControllerInterface::Response.type
should contain the corresponding error code along with a log message in ChannelControllerInterface::Response.errorMessage
. Implemented in alexaClientSDK::sampleApplications::common::EndpointAlexaChannelControllerHandler.
|
pure virtual |
Jump to the previous channel on the the endpoint. Decrementing the first channel must wrap to the end of the list.
ChannelControllerInterface::Response.type
should return SUCCESS if no errors were encountered. Otherwise, ChannelControllerInterface::Response.type
should contain the corresponding error code along with a log message in ChannelControllerInterface::Response.errorMessage
. Implemented in alexaClientSDK::alexaChannelController::test::MockAlexaChannelControllerInterface, and alexaClientSDK::sampleApplications::common::EndpointAlexaChannelControllerHandler.
|
pure virtual |
Get the current channel information of the endpoint.
Channel
of the endpoint Implemented in alexaClientSDK::alexaChannelController::test::MockAlexaChannelControllerInterface, and alexaClientSDK::sampleApplications::common::EndpointAlexaChannelControllerHandler.
|
pure virtual |
Jump to the next channel on the the endpoint. Incrementing the last channel must wrap to the beginning of the list.
ChannelControllerInterface::Response.type
should return SUCCESS if no errors were encountered. Otherwise, ChannelControllerInterface::Response.type
should contain the corresponding error code along with a log message in ChannelControllerInterface::Response.errorMessage
. Implemented in alexaClientSDK::alexaChannelController::test::MockAlexaChannelControllerInterface, and alexaClientSDK::sampleApplications::common::EndpointAlexaChannelControllerHandler.
|
pure virtual |
Removes a observer of ChannelControllerObserverInterface
.
observer | The pointer to the ChannelControllerObserverInterface . |
Implemented in alexaClientSDK::alexaChannelController::test::MockAlexaChannelControllerInterface.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0