Gio.SettingsBindSetMapping

function onSettingsBindSetMapping(value: Any, expected_type: GLib.VariantType): GLib.Variant {
}
  

The type for the function that is used to convert an object property value to a GLib.Variant for storing it in Gio.Settings.

value

a GObject.Value containing the property value to map

expected_type

the GLib.VariantType to create

Returns

a new GLib.Variant holding the data from value, or null in case of an error