Settings.connectChanged

gulong connectChanged(T)(string detail = null, T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == string))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gio.settings.Settings))) && Parameters!T.length < 3)

Connect to Changed signal.

The "changed" signal is emitted when a key has potentially changed. You should call one of the [gio.settings.Settings.get] calls to check the new value.

This signal supports detailed connections. You can connect to the detailed signal "changed::x" in order to only receive callbacks when key "x" changes.

Note that settings only emits this signal if you have read key at least once while a signal handler was already connected for key.

Parameters

detailSignal detail or null (default)
callbacksignal callback delegate or function to connect void callback(string key, gio.settings.Settings settings) key the name of the key that changed (optional) settings the instance the signal is connected to (optional)
afterYes.After to execute callback after default handler, No.After to execute before (default)

Returns

Signal ID