onChanged

fun onChanged(connectFlags: <Error class: unknown class> = ConnectFlags(0u), detail: String? = null, handler: (key: String) -> Unit): <Error class: unknown class>(source)

The "changed" signal is emitted when a key has potentially changed. You should call one of the g_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

connectFlags

a combination of ConnectFlags

detail

the signal detail

handler

the Callback to connect. Params: key the name of the key that changed