How to catch ambience change signal in an app?
I need to catch the moment when user changes Ambience on the device. Is there any signal to catch in QML? Or maybe there is a signal emitted when the repaint of the whole app is requested?
We have moved to a new Sailfish OS Forum. Please start new discussions there.
I need to catch the moment when user changes Ambience on the device. Is there any signal to catch in QML? Or maybe there is a signal emitted when the repaint of the whole app is requested?
This thread is public, all members of Together.Jolla.Com can read this page.
Asked: 2016-06-23 12:45:16 +0200
Seen: 134 times
Last updated: Jun 23 '16
User wants to see certain part of picture as a Lock Screen background [answered]
How to change Ambiences really fast [answered]
Themes (not just ambiences) [answered]
Suggestion: Turn off ambience force [released]
image editing doesn't work with png [duplicate]
Suggestion: simplify photo menu
Allow icons to interact with ambience
Suggestion: QR code reader element for Silica
@rinigus - You can find out yourself using a few different ways that may or may not yield what you need.
type
dbus-monitor
hit enter and then change ambience on your phone-or-
Spam Hunter ( 2016-06-23 14:01:25 +0200 )editdconf watch /
hit enter and change ambience on the phone......in both cases, a fair bit of useful data is spewed out for your perusal.Thank you very much! dconf watch / is giving the changes exactly as needed (values at /desktop/jolla/theme/color). Do you know an API to follow dconf values changes? Qt C++/QML?
rinigus ( 2016-06-23 15:30:40 +0200 )edit@rinigus - I'm still very much a newbie to all things Linux/Sailfish. So, I'm not so sure I understand what you are now asking me.....but,
Spam Hunter ( 2016-06-23 16:06:10 +0200 )editlibdconf.so
I believe, contains the DConf client API functions andlibdconf-dbus-1.so
contains DConf client API functions for DBus.- this gleaned from Googling, so info may not be correct or files may not be present in Sailfish.It seems that I can also use Qt DBus interface and catch the Writer signals. Thank you for an answer! OK, now just have to implement it :)
rinigus ( 2016-06-23 16:21:46 +0200 )editYou're welcome, glad to be of some help, good luck!,.... I have so much to learn!
Spam Hunter ( 2016-06-23 16:37:27 +0200 )edit