Gio.Settings.new

function new(schema_id: String): Gio.Settings {
    // Gjs wrapper for g_settings_new()
}
  

Creates a new Gio.Settings object with the schema specified by schema_id.

Signals on the newly created Gio.Settings object will be dispatched via the thread-default GLib.MainContext in effect at the time of the call to Gio.Settings.new. The new Gio.Settings will hold a reference on the context. See GLib.MainContext.prototype.push_thread_default.

Since 2.26

schema_id

the id of the schema

Returns

a new Gio.Settings object