Gio.SettingsSchemaSource.prototype.lookup

function lookup(schema_id: String, recursive: Boolean): Gio.SettingsSchema {
    // Gjs wrapper for g_settings_schema_source_lookup()
}
  

Looks up a schema with the identifier schema_id in source.

This function is not required for normal uses of Gio.Settings but it may be useful to authors of plugin management systems or to those who want to introspect the content of schemas.

If the schema isn't found directly in source and recursive is true then the parent sources will also be checked.

If the schema isn't found, null is returned.

Since 2.32

schema_id

a schema ID

recursive

true if the lookup should be recursive

Returns

a new Gio.SettingsSchema