AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | List of all members
alexaClientSDK::settings::test::MockSettingObserver< SettingT > Class Template Reference

#include <MockSettingObserver.h>

Inheritance diagram for alexaClientSDK::settings::test::MockSettingObserver< SettingT >:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::settings::test::MockSettingObserver< SettingT >:
Collaboration graph
[legend]

Public Member Functions

 MOCK_METHOD2_T (onSettingNotification, void(const typename SettingT::ValueType &value, SettingNotifications notification))
 
- Public Member Functions inherited from alexaClientSDK::settings::SettingObserverInterface< SettingT >
virtual ~SettingObserverInterface ()=default
 
virtual void onSettingNotification (const typename SettingT::ValueType &value, SettingNotifications notification)=0
 

Additional Inherited Members

- Public Attributes inherited from alexaClientSDK::settings::SettingObserverInterface< SettingT >
friend SettingT
 Only objects from SettingT can call the value change notification. More...
 

Detailed Description

template<typename SettingT>
class alexaClientSDK::settings::test::MockSettingObserver< SettingT >

Mock setting observer.

Template Parameters
SettingTThe setting type to be observed.

Member Function Documentation

◆ MOCK_METHOD2_T()

template<typename SettingT >
alexaClientSDK::settings::test::MockSettingObserver< SettingT >::MOCK_METHOD2_T ( onSettingNotification  ,
void(const typename SettingT::ValueType &value, SettingNotifications notification)   
)

Function called when the observed setting is called.

Parameters
valueThe current value of the setting. For LOCAL_CHANGE and AVS_CHANGE, the value should be the same as the one requested.
notificationThe notification type.

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