AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <CommunicationPropertyValidatorInterface.h>
Public Member Functions | |
virtual | ~CommunicationPropertyValidatorInterface ()=default |
virtual bool | validateWriteRequest (const std::string &propertyName, T newValue)=0 |
The CommunicationPropertyValidatorInterface is used to validate the new value that is being written to a property. This allows the component that registered the property to have some control over what is written into their property by external components.
|
virtualdefault |
default destructor
|
pure virtual |
Called when we want to write to a property. Used to validate before we write the newValue
propertyName | The name of the property |
newValue | The new value of the property |
Implemented in alexaClientSDK::acsdkCommunication::AlwaysTrueCommunicationValidator< T >, and alexaClientSDK::acsdkCommunication::test::FalseValidator.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0