bind

open fun bind(key: String, object: <Error class: unknown class>, property: String, flags: SettingsBindFlags)

Create a binding between the @key in the @settings object and the property @property of @object.

The binding uses the default GIO mapping functions to map between the settings and property values. These functions handle booleans, numeric types and string types in a straightforward way. Use g_settings_bind_with_mapping() if you need a custom mapping, or map between types that are not supported by the default mapping functions.

Unless the @flags include %G_SETTINGS_BIND_NO_SENSITIVITY, this function also establishes a binding between the writability of

Since

2.26

Parameters

key

the key to bind

object

a #GObject

property

the name of the property to bind

flags

flags for the binding