bindWithMapping

open fun bindWithMapping(    key: String,     object: <Error class: unknown class>,     property: String,     flags: SettingsBindFlags,     getMapping: <Error class: unknown class>? = null,     setMapping: <Error class: unknown class>? = null)(source)

Version of g_settings_bind_with_mapping() using closures instead of callbacks for easier binding in other languages.

Since

2.82

Parameters

key

the key to bind

object

a #GObject

property

the name of the property to bind

flags

flags for the binding

getMapping

a function that gets called to convert values from @settings to @object, or null to use the default GIO mapping

setMapping

a function that gets called to convert values from @object to @settings, or null to use the default GIO mapping