get_string


Description:

[ Version ( since = "2.26" ) ]
public string get_string (string key)

Gets the value that is stored at key in this.

A convenience variant of [method@Gio.Settings.get] for strings.

It is a programmer error to give a key that isn’t specified as having an `s` type in the schema for this (see [struct@GLib.VariantType]).

Parameters:

this

the settings object

key

the key to get the value for

Returns:

a newly-allocated string