Settings.connectChanged

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.

class Settings
ulong
connectChanged
(
T
)
(
string detail = null
,,
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
)

Parameters

detail string

Signal detail or null (default)

callback T

signal 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)

after Flag!"After"

Yes.After to execute callback after default handler, No.After to execute before (default)

Return Value

Type: ulong

Signal ID