AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Static Public Member Functions | List of all members
alexaClientSDK::alexaInputController::AlexaInputControllerFactory Class Reference

#include <InputControllerFactory.h>

Static Public Member Functions

static avsCommon::utils::Optional< InputControllerCapabilityAgentData > create (const avsCommon::sdkInterfaces::endpoints::EndpointIdentifier &endpointId, const std::shared_ptr< alexaInputControllerInterfaces::InputControllerInterface > &inputController, const std::shared_ptr< avsCommon::sdkInterfaces::ContextManagerInterface > &contextManager, const std::shared_ptr< avsCommon::sdkInterfaces::AlexaInterfaceMessageSenderInterface > &responseSender, const std::shared_ptr< avsCommon::sdkInterfaces::ExceptionEncounteredSenderInterface > &exceptionSender, bool isProactivelyReported, bool isRetrievable)
 

Detailed Description

This factory can be used to create an AlexaInputControllerFactory object which could be a parameter for Capability Agent construction.

Member Function Documentation

◆ create()

static avsCommon::utils::Optional<InputControllerCapabilityAgentData> alexaClientSDK::alexaInputController::AlexaInputControllerFactory::create ( const avsCommon::sdkInterfaces::endpoints::EndpointIdentifier endpointId,
const std::shared_ptr< alexaInputControllerInterfaces::InputControllerInterface > &  inputController,
const std::shared_ptr< avsCommon::sdkInterfaces::ContextManagerInterface > &  contextManager,
const std::shared_ptr< avsCommon::sdkInterfaces::AlexaInterfaceMessageSenderInterface > &  responseSender,
const std::shared_ptr< avsCommon::sdkInterfaces::ExceptionEncounteredSenderInterface > &  exceptionSender,
bool  isProactivelyReported,
bool  isRetrievable 
)
static

Creates a new InputController capability agent configuration.

Parameters
endpointIdA endpoint to which this capability is associated.
inputControllerAn interface that this object will use to perform the input controller operations.
contextManagerAn interface to which this object will send property state updates.
responseSenderAn interface that this object will use to send the response to AVS.
exceptionSenderAn interface to report exceptions to AVS.
isProactivelyReportedWhether the input properties change is proactively reported to AVS in a change report.
isRetrievableWhether the input properties can be retrieved when AVS sends a state report request to the endpoint.
Returns
An Optional object containing an instance of InputControllerCapabilityAgentData object if successful.

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