Gio.SettingsSchema.prototype.get_key

function get_key(name: String): Gio.SettingsSchemaKey {
    // Gjs wrapper for g_settings_schema_get_key()
}
  

Gets the key named name from schema.

It is a programmer error to request a key that does not exist. See g_settings_schema_list_keys().

Since 2.40

name

the name of a key

Returns

the Gio.SettingsSchemaKey for name