0

No ConfigChangeListener in C++ API for ConfigService. Why?

asked 2014-11-11 02:11:27 -0800

tashi gravatar image

I have developed Config Service app in Android. And Listener "ConfigChangeListener" was very useful to know when configClient has updated my parameter remotely and can take necessary action at my end.

But surprisingly such listener was not available in C++ API for configService. So how would configService app in C++ would know when configClient has called configClient.updateConfiguration() ?

Please help !

Thanks Tashi

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-11-11 13:59:47 -0800

bspencer gravatar image

In C++ there is not the callback that was done in Java. In C++ what you can do is in your implementation of a Property Store add code to handle what you would like in an Update call.

The other option is to modify the C++ code in the ConfigService.cc ConfigService::UpdateConfigurationsHandler method to call a new listener member that you add into the ConfigService::Listener definition found in ConfigService.h.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2014-11-11 02:11:27 -0800

Seen: 28 times

Last updated: Nov 11 '14