![]()  | 
  
    AlexaClientSDK
    3.0.0
    
   A cross-platform, modular SDK for interacting with the Alexa Voice Service 
   | 
 
#include <CommunicationProperty.h>
Public Member Functions | |
| bool | setValue (T newValue) | 
| T | getValue () | 
| bool | isWriteable () | 
| bool | addSubscriber (const std::weak_ptr< CommunicationPropertyChangeSubscriber< T >> &subscriber) | 
| void | removeSubscriber (const std::shared_ptr< CommunicationPropertyChangeSubscriber< T >> &subscriber) | 
Static Public Member Functions | |
| static std::shared_ptr< CommunicationProperty< T > > | create (const std::string &name, T initValue, bool writeable) | 
The CommunicationProperty is the class that will be returned when we register a new property with the CommunicationPropertiesHandlerInterface. This will hold a value of type T. This class allows the owner direct read and write access.
      
  | 
  inline | 
Add a subscriber to property change events.
| subscriber | The new subscriber that wants to listen to property change events. | 
      
  | 
  inlinestatic | 
Create a new Property
| name | Name of the new property. | 
| initValue | The initial value of the property | 
| writeable | If the property is writeable or not. | 
      
  | 
  inline | 
Owner of the property can get the value of the property without going through the CommunicationPropertiesHandlerInterface
      
  | 
  inline | 
A function used to determine if the property is writeable or not.
      
  | 
  inline | 
Remove a subscriber from property change events.
| subscriber | The subscriber that doesn't want to listen to property change events. | 
      
  | 
  inline | 
setValue allows setting of the value without going through the CommunicationPropertiesHandlerInterface
| newValue | The newValue which we are setting the value to. | 
Capturing a snapshot of this communication property and notifying the subscribers by submitting this to the executor.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0