AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
List of all members
alexaClientSDK::acsdkCommunication::InMemoryCommunicationPropertiesHandler< T >::WeakSubscriptionProxy Class Reference

#include <InMemoryCommunicationPropertiesHandler.h>

Inheritance diagram for alexaClientSDK::acsdkCommunication::InMemoryCommunicationPropertiesHandler< T >::WeakSubscriptionProxy:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::acsdkCommunication::InMemoryCommunicationPropertiesHandler< T >::WeakSubscriptionProxy:
Collaboration graph
[legend]

Public Member Functions

CommunictionPropertyChangeSubscriber methods
void onCommunicationPropertyChange (const std::string &propertyName, T newValue) override
 
- Public Member Functions inherited from alexaClientSDK::acsdkCommunicationInterfaces::CommunicationPropertyChangeSubscriber< T >
virtual ~CommunicationPropertyChangeSubscriber ()=default
 
- Public Member Functions inherited from alexaClientSDK::notifier::Notifier< acsdkCommunicationInterfaces::CommunicationPropertyChangeSubscriber< T > >
 Notifier ()
 
void addObserver (const std::shared_ptr< acsdkCommunicationInterfaces::CommunicationPropertyChangeSubscriber< T > > &observer) override
 Add an observer. More...
 
void removeObserver (const std::shared_ptr< acsdkCommunicationInterfaces::CommunicationPropertyChangeSubscriber< T > > &observer) override
 Remove an observer. More...
 
void addWeakPtrObserver (const std::weak_ptr< acsdkCommunicationInterfaces::CommunicationPropertyChangeSubscriber< T > > &observer) override
 Add a weak reference to an observer. More...
 
void removeWeakPtrObserver (const std::weak_ptr< acsdkCommunicationInterfaces::CommunicationPropertyChangeSubscriber< T > > &observer) override
 Remove an observer. More...
 
void notifyObservers (std::function< void(const std::shared_ptr< acsdkCommunicationInterfaces::CommunicationPropertyChangeSubscriber< T > > &)> notify) override
 Notify the observers in the order that they were added. More...
 
bool notifyObserversInReverse (std::function< void(const std::shared_ptr< acsdkCommunicationInterfaces::CommunicationPropertyChangeSubscriber< T > > &)> notify) override
 Notify the observers in the reverse order that they were added. More...
 
void setAddObserverFunction (std::function< void(const std::shared_ptr< acsdkCommunicationInterfaces::CommunicationPropertyChangeSubscriber< T > > &)> addObserverFunc) override
 Set a function for notifications on an observer additions. More...
 
- Public Member Functions inherited from alexaClientSDK::notifierInterfaces::NotifierInterface< acsdkCommunicationInterfaces::CommunicationPropertyChangeSubscriber< T > >
virtual ~NotifierInterface ()=default
 

Detailed Description

template<typename T>
class alexaClientSDK::acsdkCommunication::InMemoryCommunicationPropertiesHandler< T >::WeakSubscriptionProxy

Internal class that is used to notify subscribers when a property has been changed.

Member Function Documentation

◆ onCommunicationPropertyChange()

template<typename T>
void alexaClientSDK::acsdkCommunication::InMemoryCommunicationPropertiesHandler< T >::WeakSubscriptionProxy::onCommunicationPropertyChange ( const std::string &  propertyName,
newValue 
)
inlineoverridevirtual

Function that is called when the Communication Property that is subscribed to has the value changed.

Parameters
propertyNameThe name of the property
newValueThe new value of the property

Implements alexaClientSDK::acsdkCommunicationInterfaces::CommunicationPropertyChangeSubscriber< T >.


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