◆ addObserver()
Adds a InputControllerObserverInterface
observer.
- Note
- If InputController implementation has configured its instance's property as proactively reported, then it is required to notify observers of
InputControllerObserverInterface
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.
- Parameters
-
observer | The pointer to the InputControllerObserverInterface . |
- Returns
true
if the object supports observer notification and observer was successfully added; otherwise, return false
Implements alexaClientSDK::alexaInputControllerInterfaces::InputControllerInterface.
◆ getInput()
Input alexaClientSDK::alexaInputController::test::MockHandler::getInput |
( |
| ) |
|
|
inlinevirtual |
◆ getSupportedInputs()
SupportedInputs alexaClientSDK::alexaInputController::test::MockHandler::getSupportedInputs |
( |
| ) |
|
|
inlinevirtual |
◆ MOCK_METHOD0() [1/2]
alexaClientSDK::alexaInputController::test::MockHandler::MOCK_METHOD0 |
( |
getSupportedInputsMock |
, |
|
|
SupportedInputs() |
|
|
) |
| |
◆ MOCK_METHOD0() [2/2]
alexaClientSDK::alexaInputController::test::MockHandler::MOCK_METHOD0 |
( |
getInputMock |
, |
|
|
Input() |
|
|
) |
| |
◆ MOCK_METHOD1() [1/3]
◆ MOCK_METHOD1() [2/3]
◆ MOCK_METHOD1() [3/3]
◆ removeObserver()
◆ setInput()
Set the input.
- Parameters
-
input | The desired input of the endpoint, which is one of those that is available from the device. |
- Returns
- whether the input was successfully set, or if an error was encountered in the process.
InputControllerInterface::Response.type
should return SUCCESS if no errors were encountered. Otherwise, InputControllerInterface::Response.type
should contain the corresponding error code along with a log message in InputControllerInterface::Response.errorMessage
.
Implements alexaClientSDK::alexaInputControllerInterfaces::InputControllerInterface.
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